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] account_invoice_import_ubl #103

Merged
merged 24 commits into from
Jun 10, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
de1bcdd
Add module account_invoice_import_ubl
alexis-via Mar 15, 2016
9e37df8
Extract regular PDF invoice import from account_invoice_import to a d…
alexis-via Aug 5, 2016
c011821
Better/cleaner pivot invoice dict format (no more IDs in the pivot in…
alexis-via Aug 18, 2016
693b485
Add module base_ubl (common methods to generate and parse UBL files)
alexis-via Aug 21, 2016
8801eee
Parse customer/supplier ref in UBL and allow to match partner on 'ref'
alexis-via Aug 21, 2016
b5038ab
Add module base_business_document_import_stock
alexis-via Aug 26, 2016
5091679
Convert YAML tests to unittest
alexis-via Aug 27, 2016
e285f8d
Allow import of UBL invoices without InvoicedQuantity tag in invoice …
alexis-via Oct 3, 2016
c362596
8.0 Add support for partner bank matching on invoice update (#6)
Oct 18, 2016
d7619ca
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
fbf74dc
Port account_invoice_import_ubl to v10.0
alexis-via Feb 15, 2017
fb1b43b
Add support for allowance and charges on Factur-X invoice import
alexis-via Aug 11, 2017
078075a
Fix counters in UBL import
alexis-via Aug 12, 2017
9d2947f
Fix bug #16 : add support for adjustment lines (per line and global)
alexis-via Aug 13, 2017
8d30d44
account_invoice_factur-x: now generate refunds with document type = 3…
alexis-via Aug 15, 2017
9342908
[11.0][MIG] account_invoice_import_ubl
astirpe Feb 14, 2018
1023cfd
[10.0] account_invoice_import_ubl: feed origin field on account.invoi…
Apr 18, 2018
fb8a8f0
Partner <-> Invoice import config : switch M2O <-> O2M
alexis-via Jan 18, 2018
2438c1d
Add support for multiple invoice import configs in invoice import wizard
alexis-via Aug 14, 2018
a64fd47
account_invoice_import: add a mail gateway
alexis-via Aug 22, 2018
e999e3b
Check the VAT number of the destination partner, to make sure the bus…
alexis-via Aug 25, 2018
f6cf946
[UPD] Update account_invoice_import_ubl.pot
oca-travis Oct 31, 2018
43c297f
[ADD] icon.png
OCA-git-bot Apr 3, 2019
d0b7fd6
[12.0][MIG] account_invoice_import_ubl
astirpe Apr 3, 2019
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
93 changes: 93 additions & 0 deletions account_invoice_import_ubl/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
==========================
Account Invoice Import UBL
==========================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/account_invoice_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-account_invoice_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 is an extension of the module *account_invoice_import* to add the ability to import UBL XML invoices.
The `UBL (Universal Business Language) <http://ubl.xml.org/>`_ standard is a XML standard for business documents
(invoices, purchase orders, etc...) created by `OASIS <https://en.wikipedia.org/wiki/OASIS_%28organization%29>`_
(Organization for the Advancement of Structured Information Standards). 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>_`).

This module works well with `e-fff <http://www.e-fff.be/>`_ invoices as used in Belgium (e-fff invoices are UBL
invoices with an embedded PDF file).

**Table of contents**

.. contents::
:local:

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

There is no configuration specific to this module. Please refer to the configuration section of the modules
*account_invoice_import* and *account_tax_unece*.

Usage
=====

Refer to the usage section of the module *account_invoice_import*.

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:%20account_invoice_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>
* Andrea Stirpe <a.stirpe@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/account_invoice_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 account_invoice_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
16 changes: 16 additions & 0 deletions account_invoice_import_ubl/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# © 2016-2017 Akretion (Alexis de Lattre <alexis.delattre@akretion.com>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
'name': 'Account Invoice Import UBL',
'version': '12.0.1.0.0',
'category': 'Accounting & Finance',
'license': 'AGPL-3',
'summary': 'Import UBL XML supplier invoices/refunds',
'author': 'Akretion,Odoo Community Association (OCA)',
'website': 'http://www.akretion.com',
'depends': ['account_invoice_import', 'base_ubl'],
'data': ['wizard/account_invoice_import_view.xml'],
'demo': ['demo/demo_data.xml'],
'installable': True,
}
93 changes: 93 additions & 0 deletions account_invoice_import_ubl/demo/demo_data.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
<?xml version="1.0" encoding="utf-8"?>

<odoo noupdate="1">

<record id="charge_account" model="account.account">
<field name="code">606UBL</field>
<field name="name">Charge account UBL</field>
<field name="user_type_id" ref="account.data_account_type_expenses"/>
</record>

<record id="ketentest" model="res.partner">
<field name="name">UBL Ketentest BV</field>
<field name="is_company" eval="True"/>
<field name="supplier" eval="True"/>
<field name="customer" eval="False"/>
<field name="email">ublketentest@gbned.nl</field>
<field name="street">Berend Slingenbergstraat</field>
<field name="street2">9A</field>
<field name="zip">7742KD</field>
<field name="city">Coevorden</field>
<field name="country_id" ref="base.nl"/>
</record>

<record id="ketentest_import_config" model="account.invoice.import.config">
<field name="name">UBL Ketentest BV</field>
<field name="partner_id" ref="ketentest"/>
<field name="invoice_line_method">nline_no_product</field>
<field name="account_id" ref="charge_account"/>
</record>

<record id="nl_vat_purchase_21" model="account.tax">
<field name="name">Dutch VAT purchase 21.0%</field>
<field name="description">NL-VAT-buy-21.0</field>
<field name="type_tax_use">purchase</field>
<field name="amount">21</field>
<field name="amount_type">percent</field>
<field name="unece_type_id" ref="account_tax_unece.tax_type_vat"/>
<field name="unece_categ_id" ref="account_tax_unece.tax_categ_s"/>
<field name="account_id" ref="charge_account"/>
<field name="refund_account_id" ref="charge_account"/>
</record>

<record id="nl_vat_purchase_6" model="account.tax">
<field name="name">Dutch VAT purchase 6.0%</field>
<field name="description">NL-VAT-buy-6.0</field>
<field name="type_tax_use">purchase</field>
<field name="amount">6</field>
<field name="amount_type">percent</field>
<field name="unece_type_id" ref="account_tax_unece.tax_type_vat"/>
<field name="unece_categ_id" ref="account_tax_unece.tax_categ_s"/>
<field name="account_id" ref="charge_account"/>
<field name="refund_account_id" ref="charge_account"/>
</record>

<record id="exact_belgium" model="res.partner">
<field name="name">Exact Belgium II BVBA</field>
<field name="is_company" eval="True"/>
<field name="supplier" eval="True"/>
<field name="customer" eval="False"/>
<field name="street">Koningin Astridlaan 166</field>
<field name="zip">1780</field>
<field name="city">Wemmel</field>
<field name="country_id" ref="base.be"/>
<field name="vat">BE0505890632</field>
</record>

<record id="exact_belgium_import_config" model="account.invoice.import.config">
<field name="name">Exact Belgium</field>
<field name="partner_id" ref="exact_belgium"/>
<field name="invoice_line_method">nline_no_product</field>
<field name="account_id" ref="charge_account"/>
</record>

<record id="multi_tank" model="res.partner">
<field name="name">Multi Tank Card bv</field>
<field name="is_company" eval="True"/>
<field name="supplier" eval="True"/>
<field name="customer" eval="False"/>
<field name="street">Postbus</field>
<field name="zip">2130 KB</field>
<field name="city">Hoofddorp</field>
<field name="country_id" ref="base.nl"/>
<field name="vat">NL009276749B01</field>
</record>

<record id="multi_tank_import_config" model="account.invoice.import.config">
<field name="name">Multi Tank</field>
<field name="partner_id" ref="multi_tank"/>
<field name="invoice_line_method">nline_no_product</field>
<field name="account_id" ref="charge_account"/>
</record>

</odoo>
66 changes: 66 additions & 0 deletions account_invoice_import_ubl/i18n/account_invoice_import_ubl.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_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: account_invoice_import_ubl
#: model:ir.ui.view,arch_db:account_invoice_import_ubl.account_invoice_import_form
msgid "(Universal Business Language, also known as"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.ui.view,arch_db:account_invoice_import_ubl.account_invoice_import_form
msgid "), either as XML file or as PDF file with an UBL XML attachment."
msgstr ""

#. module: account_invoice_import_ubl
#: model:account.tax,name:account_invoice_import_ubl.nl_vat_purchase_21
msgid "Dutch VAT purchase 21.0%"
msgstr ""

#. module: account_invoice_import_ubl
#: model:account.tax,name:account_invoice_import_ubl.nl_vat_purchase_6
msgid "Dutch VAT purchase 6.0%"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.ui.view,arch_db:account_invoice_import_ubl.account_invoice_import_form
msgid "ISO/IEC 19845"
msgstr ""

#. module: account_invoice_import_ubl
#: model:account.tax,description:account_invoice_import_ubl.nl_vat_purchase_21
msgid "NL-VAT-buy-21.0"
msgstr ""

#. module: account_invoice_import_ubl
#: model:account.tax,description:account_invoice_import_ubl.nl_vat_purchase_6
msgid "NL-VAT-buy-6.0"
msgstr ""

#. module: account_invoice_import_ubl
#: code:addons/account_invoice_import_ubl/wizard/account_invoice_import.py:152
#, python-format
msgid "This UBL XML file is not an invoice/refund file (InvoiceTypeCode is %s"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.ui.view,arch_db:account_invoice_import_ubl.account_invoice_import_form
msgid "UBL"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.model,name:account_invoice_import_ubl.model_account_invoice_import
msgid "Wizard to import supplier invoices/refunds"
msgstr ""

70 changes: 70 additions & 0 deletions account_invoice_import_ubl/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_import_ubl
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 2016
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 8.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2016-11-12 13:36+0000\n"
"PO-Revision-Date: 2016-11-12 13:36+0000\n"
"Last-Translator: OCA Transbot <transbot@odoo-community.org>, 2016\n"
"Language-Team: French (https://www.transifex.com/oca/teams/23907/fr/)\n"
"Language: fr\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: account_invoice_import_ubl
#: model:ir.ui.view,arch_db:account_invoice_import_ubl.account_invoice_import_form
msgid "(Universal Business Language, also known as"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.ui.view,arch_db:account_invoice_import_ubl.account_invoice_import_form
msgid "), either as XML file or as PDF file with an UBL XML attachment."
msgstr ""

#. module: account_invoice_import_ubl
#: model:account.tax,name:account_invoice_import_ubl.nl_vat_purchase_21
msgid "Dutch VAT purchase 21.0%"
msgstr ""

#. module: account_invoice_import_ubl
#: model:account.tax,name:account_invoice_import_ubl.nl_vat_purchase_6
msgid "Dutch VAT purchase 6.0%"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.ui.view,arch_db:account_invoice_import_ubl.account_invoice_import_form
msgid "ISO/IEC 19845"
msgstr ""

#. module: account_invoice_import_ubl
#: model:account.tax,description:account_invoice_import_ubl.nl_vat_purchase_21
msgid "NL-VAT-buy-21.0"
msgstr ""

#. module: account_invoice_import_ubl
#: model:account.tax,description:account_invoice_import_ubl.nl_vat_purchase_6
msgid "NL-VAT-buy-6.0"
msgstr ""

#. module: account_invoice_import_ubl
#: code:addons/account_invoice_import_ubl/wizard/account_invoice_import.py:152
#, python-format
msgid "This UBL XML file is not an invoice/refund file (InvoiceTypeCode is %s"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.ui.view,arch_db:account_invoice_import_ubl.account_invoice_import_form
msgid "UBL"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.model,name:account_invoice_import_ubl.model_account_invoice_import
msgid "Wizard to import supplier invoices/refunds"
msgstr "Assistant pour importer les PDF de facture fournisseur"
Loading