Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
39 commits
Select commit Hold shift + click to select a range
36c5dd6
Add module account_invoice_import_ubl
alexis-via Mar 15, 2016
8d726d9
Extract regular PDF invoice import from account_invoice_import to a d…
alexis-via Aug 5, 2016
af50cc7
Better/cleaner pivot invoice dict format (no more IDs in the pivot in…
alexis-via Aug 18, 2016
dcaf345
Add module base_ubl (common methods to generate and parse UBL files)
alexis-via Aug 21, 2016
50a1eb1
Parse customer/supplier ref in UBL and allow to match partner on 'ref'
alexis-via Aug 21, 2016
ae0bc52
Add module base_business_document_import_stock
alexis-via Aug 26, 2016
ca6bd00
Convert YAML tests to unittest
alexis-via Aug 27, 2016
25fdc75
Allow import of UBL invoices without InvoicedQuantity tag in invoice …
alexis-via Oct 3, 2016
49b932b
8.0 Add support for partner bank matching on invoice update (#6)
Oct 18, 2016
af7b807
OCA Transbot updated translations from Transifex
oca-transbot Nov 29, 2016
c67868f
Port account_invoice_import_ubl to v10.0
alexis-via Feb 15, 2017
1574558
Add support for allowance and charges on Factur-X invoice import
alexis-via Aug 11, 2017
d5a9174
Fix counters in UBL import
alexis-via Aug 12, 2017
a9220e2
Fix bug #16 : add support for adjustment lines (per line and global)
alexis-via Aug 13, 2017
b6046db
account_invoice_factur-x: now generate refunds with document type = 3…
alexis-via Aug 15, 2017
d373d2a
[11.0][MIG] account_invoice_import_ubl
astirpe Feb 14, 2018
70415e4
[10.0] account_invoice_import_ubl: feed origin field on account.invoi…
Apr 18, 2018
a40046c
Partner <-> Invoice import config : switch M2O <-> O2M
alexis-via Jan 18, 2018
09eb65f
Add support for multiple invoice import configs in invoice import wizard
alexis-via Aug 14, 2018
2a26e7a
account_invoice_import: add a mail gateway
alexis-via Aug 22, 2018
e871903
Check the VAT number of the destination partner, to make sure the bus…
alexis-via Aug 25, 2018
2cae496
[UPD] Update account_invoice_import_ubl.pot
oca-travis Oct 31, 2018
31eb928
[ADD] icon.png
OCA-git-bot Apr 3, 2019
1100980
[12.0][MIG] account_invoice_import_ubl
astirpe Apr 3, 2019
44c863f
[UPD] Update account_invoice_import_ubl.pot
oca-travis Jun 10, 2020
9dc1a2c
[UPD] README.rst
OCA-git-bot Jun 10, 2020
8b6b43e
Update translation files
oca-transbot Aug 3, 2020
a86ef55
[IMP] account_invoice_import_ubl: black, isort, prettier
NL66278 Nov 30, 2020
fd9ab3d
[MIG] account_invoice_import_ubl: migration to 13.0
NL66278 Nov 30, 2020
fa0f2d9
[MIG] Migrate module account_invoice_import_ubl to v14.
fshah-initos May 31, 2021
8051099
[UPD] README.rst
OCA-git-bot Jul 29, 2021
695089f
[UPD] Update account_invoice_import_ubl.pot
oca-travis Jul 30, 2021
fbc1acb
Update translation files
oca-transbot Jul 30, 2021
971ec28
account_invoice_import_ubl: prevent test log bloating
simahawk Oct 14, 2021
a33bfc9
account_invoice_import_ubl 14.0.1.0.1
OCA-git-bot Oct 29, 2021
41b16b3
Added translation using Weblate (Dutch)
bosd Jan 27, 2022
646a708
Translated using Weblate (Dutch)
bosd Jan 27, 2022
0d0d21d
[MIG] account_invoice_import_ubl from v14 to v16
alexis-via Mar 24, 2023
be7c7ce
[FIX] account_invoice_import: Added check and conversion if input is …
JoanSForgeFlow Jun 13, 2023
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/14.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-14-0/edi-14-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/14.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:%2014.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 <[email protected]>
* Andrea Stirpe <[email protected]>

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/14.0/account_invoice_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 account_invoice_import_ubl/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import wizard
18 changes: 18 additions & 0 deletions account_invoice_import_ubl/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2016-2021 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

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

<record id="ketentest" model="res.partner">
<field name="name">UBL Ketentest BV</field>
<field name="is_company" eval="True" />
<field name="supplier_rank">1</field>
<field name="customer_rank">0</field>
<field name="email">[email protected]</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="company_id" ref="base.main_company" />
<field name="invoice_line_method">nline_no_product</field>
<field
name="account_id"
model="account.account"
search="[('account_type', '=', 'expense'), ('company_id', '=', ref('base.main_company'))]"
/>
</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="company_id" ref="base.main_company" />
</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="company_id" ref="base.main_company" />
</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_rank">1</field>
<field name="customer_rank">0</field>
<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="company_id" ref="base.main_company" />
<field name="invoice_line_method">nline_no_product</field>
<field
name="account_id"
model="account.account"
search="[('account_type', '=', 'expense'), ('company_id', '=', ref('base.main_company'))]"
/>
</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_rank">1</field>
<field name="customer_rank">0</field>
<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="company_id" ref="base.main_company" />
<field name="invoice_line_method">nline_no_product</field>
<field
name="account_id"
model="account.account"
search="[('account_type', '=', 'expense'), ('company_id', '=', ref('base.main_company'))]"
/>
</record>

</odoo>
60 changes: 60 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,60 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_import_ubl
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 14.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_terms: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_terms: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:ir.model.fields,field_description:account_invoice_import_ubl.field_account_invoice_import__display_name
msgid "Display Name"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.model.fields,field_description:account_invoice_import_ubl.field_account_invoice_import__id
msgid "ID"
msgstr ""

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

#. module: account_invoice_import_ubl
#: model:ir.model.fields,field_description:account_invoice_import_ubl.field_account_invoice_import____last_update
msgid "Last Modified on"
msgstr ""

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

#. module: account_invoice_import_ubl
#: model_terms: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 ""
65 changes: 65 additions & 0 deletions account_invoice_import_ubl/i18n/fr.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_import_ubl
#
# Translators:
# OCA Transbot <[email protected]>, 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 <[email protected]>, 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_terms: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_terms: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:ir.model.fields,field_description:account_invoice_import_ubl.field_account_invoice_import__display_name
msgid "Display Name"
msgstr ""

#. module: account_invoice_import_ubl
#: model:ir.model.fields,field_description:account_invoice_import_ubl.field_account_invoice_import__id
msgid "ID"
msgstr ""

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

#. module: account_invoice_import_ubl
#: model:ir.model.fields,field_description:account_invoice_import_ubl.field_account_invoice_import____last_update
msgid "Last Modified on"
msgstr ""

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

#. module: account_invoice_import_ubl
#: model_terms: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