Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
85 changes: 85 additions & 0 deletions purchase_order_import_ubl/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

=========================
Purchase Order Import UBL
=========================

..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:d8649af146f7d9d01df75f800be80420982f101a597d1df0aaf019b48a5ae49d
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github
:target: https://github.com/OCA/edi/tree/19.0/purchase_order_import_ubl
:alt: OCA/edi
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/edi-19-0/edi-19-0-purchase_order_import_ubl
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=19.0
:alt: Try me on Runboat

|badge1| |badge2| |badge3| |badge4| |badge5|

This module adds support for importing supplier quotations and order
responses that comply with the Universal Business Language (UBL)
standard.

Supported files can be plain UBL XML documents or PDF files with an
embedded UBL XML document.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20purchase_order_import_ubl%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
-------

* Akretion

Contributors
------------

- Alexis de Lattre alexis.delattre@akretion.com

Maintainers
-----------

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/19.0/purchase_order_import_ubl>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions purchase_order_import_ubl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizard
15 changes: 15 additions & 0 deletions purchase_order_import_ubl/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# © 2016-2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Purchase Order Import UBL",
"version": "19.0.1.0.0",
"category": "Purchase Management",
"license": "AGPL-3",
"summary": "Import UBL XML quotation and order response files",
"author": "Akretion,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/edi",
"depends": ["purchase_order_import", "base_ubl_parse"],
"demo": ["demo/demo_data.xml"],
"installable": True,
}
100 changes: 100 additions & 0 deletions purchase_order_import_ubl/demo/demo_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">
<!-- Sample partners for UBL Order 2.1 documents -->
<record id="johnssons" model="res.partner">
<field name="name">Johnssons byggvaror</field>
<field name="is_company" eval="True" />
<field name="customer_rank" eval="1" />
<field name="email" />
<field name="street">5 Rådhusgatan</field>
<field name="street2">PoBox123</field>
<field name="zip">11000</field>
<field name="city">Stockholm</field>
<field name="country_id" ref="base.se" />
<field name="property_purchase_currency_id" ref="base.SEK" />
</record>

<record id="svensson" model="res.partner">
<field name="parent_id" ref="johnssons" />
<field name="name">Pelle Svensson</field>
<field name="function">Boss</field>
<field name="email">pelle@johnsson.se</field>
<field name="customer_rank" eval="1" />
<field name="type">contact</field>
<field name="property_purchase_currency_id" ref="base.SEK" />
</record>

<record id="swedish_trucking" model="res.partner">
<field name="name">Swedish trucking</field>
<field name="is_company" eval="True" />
<field name="email">bill@svetruck.se</field>
<field name="street">5 Rådhusgatan</field>
<field name="street2">2nd floor</field>
<field name="zip">11000</field>
<field name="city">Stockholm</field>
<field name="country_id" ref="base.se" />
</record>

<!-- Sample partners for UBL Order 2.0 documents -->
<record id="iyt" model="res.partner">
<field name="name">IYT Corporation</field>
<field name="is_company" eval="True" />
<field name="customer_rank" eval="1" />
<field name="email" />
<field name="street">56A Avon Way</field>
<field name="street2">Thereabouts</field>
<field name="zip">ZZ99 1ZZ</field>
<field name="city">Bridgtow</field>
<field name="country_id" ref="base.uk" />
<field name="property_purchase_currency_id" ref="base.GBP" />
</record>

<record id="fred_churchill" model="res.partner">
<field name="parent_id" ref="iyt" />
<field name="name">Fred Churchill</field>
<field name="email">fred@iytcorporation.gov.uk</field>
<field name="customer_rank" eval="1" />
<field name="type">contact</field>
</record>

<!-- Sample partners for UBL RequestForQuotation 2.0 documents -->
<record id="terminus" model="res.partner">
<field name="name">The Terminus</field>
<field name="is_company" eval="True" />
<field name="customer_rank" eval="1" />
<field name="email" />
<field name="street">56A Avon Way</field>
<field name="street2">Thereabouts</field>
<field name="zip">ZZ99 1ZZ</field>
<field name="city">Bridgtow</field>
<field name="country_id" ref="base.uk" />
</record>

<record id="s_massiah" model="res.partner">
<field name="parent_id" ref="terminus" />
<field name="name">S Massiah</field>
<field name="email">smassiah@the-email.co.uk</field>
<field name="customer_rank" eval="1" />
<field name="type">contact</field>
</record>

<!-- Sample partners for UBL RequestForQuotation 2.1 documents -->
<record id="gentofte_kommune" model="res.partner">
<field name="name">Gentofte Kommune</field>
<field name="is_company" eval="True" />
<field name="customer_rank" eval="1" />
<field name="email" />
<field name="street">161 Bernstorffsvej</field>
<field name="zip">2920</field>
<field name="city">Charlottenlund</field>
<field name="country_id" ref="base.dk" />
<field name="property_purchase_currency_id" ref="base.DKK" />
</record>

<record id="delivery_gentofte_kommune" model="res.partner">
<field name="parent_id" ref="gentofte_kommune" />
<field name="name">Joe Delivery</field>
<field name="customer_rank" eval="1" />
<field name="type">contact</field>
</record>
</odoo>
42 changes: 42 additions & 0 deletions purchase_order_import_ubl/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_import_ubl
#
# Translators:
# enjolras <yo@miguelrevilla.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 19.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-03-12 01:43+0000\n"
"PO-Revision-Date: 2018-03-12 01:43+0000\n"
"Last-Translator: enjolras <yo@miguelrevilla.com>, 2018\n"
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
"Language: es\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#. module: purchase_order_import_ubl
#: model:ir.model,name:purchase_order_import_ubl.model_purchase_order_import_wizard
msgid "Purchase Order Import from Files"
msgstr "Importar pedido de compra desde archivos"

#. module: purchase_order_import_ubl
#: model:ir.model,name:purchase_order_import_ubl.model_order_response_import_wizard
#, fuzzy
msgid "Purchase Order Response Import from Files"
msgstr "Importar pedido de compra desde archivos"

#. module: purchase_order_import_ubl
#: code:addons/purchase_order_import_ubl/wizard/order_response_import.py:0
#, python-format
msgid "Unknown response code found '%(code)s'"
msgstr ""

#. module: purchase_order_import_ubl
#: code:addons/purchase_order_import_ubl/wizard/order_response_import.py:0
#, python-format
msgid "Unsupported line status code found '%(code)s'"
msgstr ""
36 changes: 36 additions & 0 deletions purchase_order_import_ubl/i18n/purchase_order_import_ubl.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_import_ubl
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 19.0\n"
"Report-Msgid-Bugs-To: \n"
"Last-Translator: <>\n"
"Language-Team: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: \n"
"Plural-Forms: \n"

#. module: purchase_order_import_ubl
#: model:ir.model,name:purchase_order_import_ubl.model_purchase_order_import_wizard
msgid "Purchase Order Import from Files"
msgstr ""

#. module: purchase_order_import_ubl
#: model:ir.model,name:purchase_order_import_ubl.model_order_response_import_wizard
msgid "Purchase Order Response Import from Files"
msgstr ""

#. module: purchase_order_import_ubl
#: code:addons/purchase_order_import_ubl/wizard/order_response_import.py:0
#, python-format
msgid "Unknown response code found '%(code)s'"
msgstr ""

#. module: purchase_order_import_ubl
#: code:addons/purchase_order_import_ubl/wizard/order_response_import.py:0
#, python-format
msgid "Unsupported line status code found '%(code)s'"
msgstr ""
3 changes: 3 additions & 0 deletions purchase_order_import_ubl/pyproject.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[build-system]
requires = ["whool"]
build-backend = "whool.buildapi"
1 change: 1 addition & 0 deletions purchase_order_import_ubl/readme/CONTRIBUTORS.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Alexis de Lattre <alexis.delattre@akretion.com>
5 changes: 5 additions & 0 deletions purchase_order_import_ubl/readme/DESCRIPTION.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This module adds support for importing supplier quotations and order responses
that comply with the Universal Business Language (UBL) standard.

Supported files can be plain UBL XML documents or PDF files with an embedded
UBL XML document.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading