Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[12.0][MIG] sale_order_import_ubl #102

Closed
wants to merge 12 commits into from
84 changes: 84 additions & 0 deletions sale_order_import_ubl/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
=====================
Sale Order UBL Import
=====================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

.. |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/licence-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/11.0/sale_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-11-0/edi-11-0-sale_order_import_ubl
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/226/11.0
:alt: Try me on Runbot

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

This module adds support for the import of electronic RFQ and orders 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>_`). Two file formats are supported by this module:

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

You can use the OCA module *purchase_order_ubl* to generate RFQs or purchase orders in PDF format with an embedded UBL XML file.

**Table of contents**

.. contents::
:local:

Usage
=====

Read the description of the *sale_order_import* module for a detailed usage description. If you want to test the import of an UBL order and your Odoo database is loaded with the demo data, you can import one of the sample files located in the directory *sale_order_import_ubl/tests/files/*.

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 <https://github.com/OCA/edi/issues/new?body=module:%20sale_order_import_ubl%0Aversion:%2011.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>
* Dennis Sluijk <d.sluijk@onestein.nl>

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/11.0/sale_order_import_ubl>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions sale_order_import_ubl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from . import wizard
15 changes: 15 additions & 0 deletions sale_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 (https://www.gnu.org/licenses/agpl).

{
'name': 'Sale Order UBL Import',
'version': '12.0.1.0.0',
'category': 'Sales Management',
'license': 'AGPL-3',
'summary': 'Import UBL XML sale order files',
'author': 'Akretion,Odoo Community Association (OCA)',
'website': 'https://github.com/oca/edi',
'depends': ['sale_order_import', 'base_ubl'],
'demo': ['demo/demo_data.xml'],
'installable': True,
}
181 changes: 181 additions & 0 deletions sale_order_import_ubl/demo/demo_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,181 @@
<?xml version="1.0" encoding="utf-8"?>

<odoo noupdate="1">

<!-- for tests/UBL-Order-2.1-Example.xml -->
<record id="base.SEK" model="res.currency">
<field name="active" eval="1"/>
</record>

<record id="sek_pricelist" model="product.pricelist">
<field name="name">SEK pricelist</field>
<field name="currency_id" ref="base.SEK"/>
</record>

<record id="sek_pricelist_item0" model="product.pricelist.item">
<field name="pricelist_id" ref="sek_pricelist"/>
<field name="name">Line 0</field>
</record>

<record id="johnssons" model="res.partner">
<field name="name">Johnssons byggvaror</field>
<field name="is_company" eval="True"/>
<field name="supplier" eval="False"/>
<field name="customer" eval="True"/>
<field name="email"></field>
<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_product_pricelist" ref="sek_pricelist"/>
</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" eval="True"/>
<field name="type">contact</field>
<field name="property_product_pricelist" ref="sek_pricelist"/>
</record>

<record id="swedish_trucking" model="res.partner">
<field name="name">Swedish trucking</field>
<field name="is_company" eval="True"/>
<field name="supplier" eval="False"/>
<field name="customer" eval="False"/>
<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>

<record id="product_red_paint" model="product.product">
<field name="name">Falu Rödfärg</field>
<field name="description_sale">Red paint</field>
<field name="default_code">SItemNo001</field>
<field name="list_price">55</field>
<field name="type">consu</field>
<field name="uom_id" ref="uom.product_uom_litre"/>
<field name="uom_po_id" ref="uom.product_uom_litre"/>
</record>

<record id="product_pencil" model="product.product">
<field name="name">Pensel 20 mm</field>
<field name="description_sale">Very good pencils for red paint</field>
<field name="default_code">SItemNo011</field>
<field name="list_price">18</field>
<field name="type">consu</field>
</record>

<!-- for tests/UBL-Order-2.0-Example.xml -->
<record id="base.GBP" model="res.currency">
<field name="active" eval="1"/>
</record>

<record id="gbp_pricelist" model="product.pricelist">
<field name="name">IYT pricelist</field>
<field name="currency_id" ref="base.GBP"/>
</record>

<record id="gbp_pricelist_item0" model="product.pricelist.item">
<field name="pricelist_id" ref="gbp_pricelist"/>
<field name="name">Line 0</field>
</record>

<record id="iyt" model="res.partner">
<field name="name">IYT Corporation</field>
<field name="is_company" eval="True"/>
<field name="supplier" eval="False"/>
<field name="customer" eval="True"/>
<field name="email"></field>
<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_product_pricelist" ref="gbp_pricelist"/>
</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" eval="True"/>
<field name="type">contact</field>
<field name="property_product_pricelist" ref="gbp_pricelist"/>
</record>

<record id="product_beeswax" model="product.product">
<field name="name">Beeswax</field>
<field name="description_sale">Acme beeswax</field>
<field name="default_code">17589683</field>
<field name="list_price">42</field>
<field name="type">consu</field>
<field name="uom_id" ref="uom.product_uom_kgm"/>
<field name="uom_po_id" ref="uom.product_uom_kgm"/>
</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="supplier" eval="False"/>
<field name="customer" eval="True"/>
<field name="email"></field>
<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" eval="True"/>
<field name="type">contact</field>
</record>

<!-- for tests/UBL-RequestForQuotation-2.1-Example.xml -->
<record id="base.DKK" model="res.currency">
<field name="active" eval="1"/>
</record>

<record id="dkk_pricelist" model="product.pricelist">
<field name="name">DKK pricelist</field>
<field name="currency_id" ref="base.DKK"/>
</record>

<record id="dkk_pricelist_item0" model="product.pricelist.item">
<field name="pricelist_id" ref="dkk_pricelist"/>
<field name="name">Line 0</field>
</record>

<record id="gentofte_kommune" model="res.partner">
<field name="name">Gentofte Kommune</field>
<field name="is_company" eval="True"/>
<field name="supplier" eval="False"/>
<field name="customer" eval="True"/>
<field name="email"></field>
<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_product_pricelist" ref="dkk_pricelist"/>
</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" eval="True"/>
<field name="type">contact</field>
</record>


</odoo>
71 changes: 71 additions & 0 deletions sale_order_import_ubl/i18n/sale_order_import_ubl.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * sale_order_import_ubl
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 11.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: sale_order_import_ubl
#: model:product.product,description_sale:sale_order_import_ubl.product_beeswax
#: model:product.template,description_sale:sale_order_import_ubl.product_beeswax_product_template
msgid "Acme beeswax"
msgstr ""

#. module: sale_order_import_ubl
#: model:product.product,name:sale_order_import_ubl.product_beeswax
#: model:product.template,name:sale_order_import_ubl.product_beeswax_product_template
msgid "Beeswax"
msgstr ""

#. module: sale_order_import_ubl
#: model:product.pricelist,name:sale_order_import_ubl.dkk_pricelist
msgid "DKK pricelist"
msgstr ""

#. module: sale_order_import_ubl
#: model:product.product,name:sale_order_import_ubl.product_red_paint
#: model:product.template,name:sale_order_import_ubl.product_red_paint_product_template
msgid "Falu Rödfärg"
msgstr ""

#. module: sale_order_import_ubl
#: model:product.pricelist,name:sale_order_import_ubl.gbp_pricelist
msgid "IYT pricelist"
msgstr ""

#. module: sale_order_import_ubl
#: model:product.product,name:sale_order_import_ubl.product_pencil
#: model:product.template,name:sale_order_import_ubl.product_pencil_product_template
msgid "Pensel 20 mm"
msgstr ""

#. module: sale_order_import_ubl
#: model:product.product,description_sale:sale_order_import_ubl.product_red_paint
#: model:product.template,description_sale:sale_order_import_ubl.product_red_paint_product_template
msgid "Red paint"
msgstr ""

#. module: sale_order_import_ubl
#: model:product.pricelist,name:sale_order_import_ubl.sek_pricelist
msgid "SEK pricelist"
msgstr ""

#. module: sale_order_import_ubl
#: model:ir.model,name:sale_order_import_ubl.model_sale_order_import
msgid "Sale Order Import from Files"
msgstr ""

#. module: sale_order_import_ubl
#: model:product.product,description_sale:sale_order_import_ubl.product_pencil
#: model:product.template,description_sale:sale_order_import_ubl.product_pencil_product_template
msgid "Very good pencils for red paint"
msgstr ""

3 changes: 3 additions & 0 deletions sale_order_import_ubl/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
* Alexis de Lattre <alexis.delattre@akretion.com>
* Dennis Sluijk <d.sluijk@onestein.nl>
* Andrea Stirpe <a.stirpe@onestein.nl>
6 changes: 6 additions & 0 deletions sale_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 RFQ and orders 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>_`). Two file formats are supported by this module:

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

You can use the OCA module *purchase_order_ubl* to generate RFQs or purchase orders in PDF format with an embedded UBL XML file.
1 change: 1 addition & 0 deletions sale_order_import_ubl/readme/USAGE.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Read the description of the *sale_order_import* module for a detailed usage description. If you want to test the import of an UBL order and your Odoo database is loaded with the demo data, you can import one of the sample files located in the directory *sale_order_import_ubl/tests/files/*.
Binary file added sale_order_import_ubl/static/description/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading