Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
7a139be
Initial check-in of modules purchase_order_import, purchase_order_imp…
alexis-via Aug 27, 2016
4fc8e4c
FIX copy-paste error in purchase_order_import_ubl: this module now re…
alexis-via Sep 4, 2016
36c5919
8.0 Add support for partner bank matching on invoice update (#6)
Oct 18, 2016
be662db
Prepare v10 branch
alexis-via Feb 15, 2017
d324150
Port purchase_order_import* to v10.0
alexis-via Feb 28, 2017
e6d8749
Remove demo data that were shipped both with sale_order_import_ubl an…
alexis-via Oct 14, 2017
1eb179f
OCA Transbot updated translations from Transifex
oca-transbot Mar 31, 2018
182c978
[UPD] Update purchase_order_import_ubl.pot
oca-travis Jul 31, 2018
ea87403
Check the VAT number of the destination partner, to make sure the bus…
alexis-via Aug 25, 2018
4c7eba3
[ADD] icon.png
OCA-git-bot Apr 3, 2019
f69daa7
[ADD] Add support for UBL OrderResponse
lmignon Feb 12, 2020
b120ac5
FIX purchase_order_import_*: version number after manual merge
bealdav Jul 13, 2020
484e110
[UPD] Update purchase_order_import_ubl.pot
oca-travis Jul 15, 2020
9a7b42f
[BUGFIX] Fix method name in purchase order
lmarion-source Aug 12, 2020
7f8a099
[BUGFIX] Fix method name for order response import
lmarion-source Aug 12, 2020
d76ef56
purchase_order_import_ubl 10.0.2.0.1
OCA-git-bot Aug 25, 2020
504f8a0
purchase_order_import_ubl 10.0.2.0.2
OCA-git-bot Aug 25, 2020
b971d10
[IMP] purchase_order_import_ubl: black, isort, prettier
rconjour Apr 12, 2021
56d7a42
[MIG] purchase_order_import_ubl: Migration to 14.0
rconjour Apr 12, 2021
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
59 changes: 59 additions & 0 deletions purchase_order_import_ubl/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3

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

This module adds support for the import of electronic quotations that comply with the `Universal Business Language (UBL) <http://ubl.xml.org/>`_ standard. The UBL standard became the `ISO/IEC 19845 <http://www.iso.org/iso/catalogue_detail.htm?csnumber=66370>`_ standard in December 2015 (cf the `official announce <http://www.prweb.com/releases/2016/01/prweb13186919.htm>_`). The file can be in two formats:

* UBL XML file,
* PDF file with an embedded UBL XML file.

You can use the OCA module *sale_order_ubl* to generate PDF quotations with an embedded UBL XML file.

Configuration
=============

No configuration is needed.

Usage
=====

Refer to the README.rst of the module *purchase_order_import* for a detailed usage description.

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/226/10.0

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 smashing it by providing a detailed and welcomed feedback.

Credits
=======

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

* Alexis de Lattre <alexis.delattre@akretion.com>

Maintainer
----------

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

This module is maintained by the OCA.

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.

To contribute to this module, please visit https://odoo-community.org.
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": "Quotation Order UBL Import",
"version": "14.0.1.0.0",
"category": "Purchase Management",
"license": "AGPL-3",
"summary": "Import UBL XML quotation files",
"author": "Akretion,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/edi",
"depends": ["purchase_order_import", "base_ubl"],
"demo": ["demo/demo_data.xml"],
"installable": True,
}
133 changes: 133 additions & 0 deletions purchase_order_import_ubl/demo/demo_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,133 @@
<?xml version="1.0" encoding="utf-8" ?>
<odoo noupdate="1">

<!-- for tests/UBL-Order-2.1-Example.xml -->
<record id="johnssons" model="res.partner">
<field name="name">Johnssons byggvaror</field>
<field name="is_company" eval="True" />
<field name="customer_rank">1</field>
<field name="supplier_rank">0</field>
<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">1</field>
<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="customer_rank">0</field>
<field name="supplier_rank">0</field>
<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>

<!-- for tests/UBL-Order-2.0-Example.xml -->
<record id="iyt" model="res.partner">
<field name="name">IYT Corporation</field>
<field name="is_company" eval="True" />
<field name="customer_rank">1</field>
<field name="supplier_rank">0</field>
<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">1</field>
<field name="type">contact</field>
</record>

<!-- for tests/UBL-RequestForQuotation-2.0-Example.xml -->
<record id="terminus" model="res.partner">
<field name="name">The Terminus</field>
<field name="is_company" eval="True" />
<field name="customer_rank">1</field>
<field name="supplier_rank">0</field>
<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">1</field>
<field name="type">contact</field>
</record>

<!-- for tests/UBL-RequestForQuotation-2.1-Example.xml -->

<record id="gentofte_kommune" model="res.partner">
<field name="name">Gentofte Kommune</field>
<field name="is_company" eval="True" />
<field name="customer_rank">1</field>
<field name="supplier_rank">0</field>
<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">1</field>
<field name="type">contact</field>
</record>

<record id="deltapc" model="res.partner">
<field name="name">Delta PC</field>
<field name="is_company" eval="True" />
<field name="supplier_rank">1</field>
<field name="email">info@yourcompany.example.com</field>
<field name="country_id" ref="base.us" />
<field name="property_purchase_currency_id" ref="base.USD" />
</record>

<record id="incoterm_DDU" model="account.incoterms">
<field name="code">DDU</field>
<field name="name">DELIVERED DUTY UNPAID</field>
</record>

<record id="PROD_DEL02" model="product.product">
<field name="default_code">PROD_DEL02</field>
<field name="name">PROD_DEL02</field>
</record>

<record id="PROD_MBi9" model="product.product">
<field name="default_code">MBi9</field>
<field name="name">MBi9</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 10.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
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
#, 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:60
#, python-format
msgid "Unknown response code found '%s'"
msgstr ""

#. module: purchase_order_import_ubl
#: code:addons/purchase_order_import_ubl/wizard/order_response_import.py:70
#, python-format
msgid "Unsupported line status code found '%s'"
msgstr ""
37 changes: 37 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,37 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * purchase_order_import_ubl
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.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
msgid "Purchase Order Import from Files"
msgstr ""

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

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

#. module: purchase_order_import_ubl
#: code:addons/purchase_order_import_ubl/wizard/order_response_import.py:70
#, python-format
msgid "Unsupported line status code found '%s'"
msgstr ""

2 changes: 2 additions & 0 deletions purchase_order_import_ubl/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
* Alexis de Lattre <alexis.delattre@akretion.com>
* Robin Conjour <rconjour@demolium.com>
6 changes: 6 additions & 0 deletions purchase_order_import_ubl/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
This module adds support for the import of electronic quotations that comply with the `Universal Business Language (UBL) <http://ubl.xml.org/>`_ standard. The UBL standard became the `ISO/IEC 19845 <http://www.iso.org/iso/catalogue_detail.htm?csnumber=66370>`_ standard in December 2015 (cf the `official announce <http://www.prweb.com/releases/2016/01/prweb13186919.htm>_`). The file can be in two formats:

* UBL XML file,
* PDF file with an embedded UBL XML file.

You can use the OCA module *sale_order_ubl* to generate PDF quotations with an embedded UBL XML file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 2 additions & 0 deletions purchase_order_import_ubl/tests/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import test_ubl_order_import
from . import test_order_response_import
Loading