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

[16.0][MIG] account_invoice_ubl #886

Open
wants to merge 67 commits into
base: 16.0
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
67 commits
Select commit Hold shift + click to select a range
9036d41
Add modules account_invoice_ubl + base_ubl_payment
alexis-via Sep 11, 2016
dbd7f6e
Add partner identification hook in UBL XML party block generation
alexis-via Sep 12, 2016
df46ae8
Add support for UBL 2.0 (required for e-fff)
alexis-via Sep 17, 2016
2661687
Update README
alexis-via Sep 17, 2016
75f2e5a
Handle lang in UBL XML file generation
alexis-via Sep 19, 2016
ce07eb7
8.0 Add support for partner bank matching on invoice update (#6)
Oct 18, 2016
6e8d755
Prepare v10 branch
alexis-via Feb 15, 2017
4e476f0
Port base_business_document_import* to v10
alexis-via Feb 19, 2017
14cd1eb
Rename account_invoice_zugferd to account_invoice_factur-x
alexis-via Feb 22, 2017
d8fd0d4
FIX crash on self._model
alexis-via Feb 23, 2017
6638fe6
Continue port of modules for v10.0, in particular sale_order_import_*…
alexis-via Feb 27, 2017
9a40884
Port purchase_order_import* to v10.0
alexis-via Feb 28, 2017
2a8ba94
Stop using precision_get('Account') (this decimal precision doesn't e…
alexis-via Mar 17, 2017
50d1144
Update test suite
alexis-via Jun 1, 2017
1a10285
Improve + modularize generation of UBL (up-port from v8 PR)
alexis-via Aug 23, 2017
89997ef
Disable get_pdf() in all tests because it doesn't work in Travis
alexis-via Oct 14, 2017
c041b21
[10.0] restore get_pdf() in tests (#31)
Oct 15, 2017
2982e39
Add module account_e-invoice_generate to ensure compatibility for XML…
alexis-via Jan 17, 2018
42d8f89
[11.0][MIG] account_invoice_ubl
astirpe Feb 9, 2018
e8fb940
Add support for PaymentID in UBL
alexis-via Apr 26, 2018
fdd7242
FIX is partner_shipping_id is empty
alexis-via May 2, 2018
8b93536
[12.0][MIG] account_invoice_ubl
astirpe Apr 2, 2019
6cd58b0
[FIX] Related field not readonly
astirpe Apr 30, 2019
a77e3ad
Added translation using Weblate (Croatian)
badbole Nov 12, 2019
f0a1c32
Translated using Weblate (Croatian)
badbole Nov 12, 2019
3c39e84
Translated using Weblate (Croatian)
badbole Nov 14, 2019
370fad0
[13.0][MIG] account_invoice_ubl
astirpe Dec 13, 2019
fdce4f2
pre-commit
astirpe Dec 13, 2019
763d373
Add coverage
astirpe Dec 17, 2019
ce5aedf
[FIX] test if res_ids is int, in this case change it in array
vrenaville Aug 14, 2020
3b2973b
[13.0][Fix] account_invoice_ubl print error
TDu Aug 17, 2020
7dbe2a9
[FIX] account_invoice_ubl: Missing renamed word
etobella Nov 24, 2020
96533c6
Added translation using Weblate (Dutch)
bosd Dec 13, 2020
874a468
Translated using Weblate (Dutch)
bosd Dec 13, 2020
4907a5c
[ADD] PEPPOL UBL-DT-07: filename attribute to binary attachment
thomaspaulb Jan 5, 2021
490c17f
[IMP] account_invoice_ubl: isort, black, prettier.
fshah-initos Feb 24, 2021
a3cb845
[MIG] Migrate module account_invoice_ubl to v14.0
fshah-initos Feb 24, 2021
fa04bd8
[IMP] account_invoice_ubl: fix report header, test
hailangvn Nov 10, 2021
9525598
[FIX] account_invoice_ubl: do not force report rendering
LoisRForgeFlow Jul 8, 2021
d9f87d1
[IMP] account_invoice_ubl: add hooks
FerranCforgeFlow Jul 26, 2021
ab57170
[UPD] Update account_invoice_ubl.pot
oca-travis Nov 27, 2021
9f8962c
[UPD] README.rst
OCA-git-bot Nov 27, 2021
a747119
[IMP] update dotfiles
OCA-git-bot Mar 30, 2022
57780c9
account_invoice_ubl due date
thomaspaulb Dec 9, 2020
5864bb8
Use invoice/sale order line taxes, not product taxes as they can be e…
thomaspaulb Feb 14, 2021
877d082
BaseQuantity is actually the unit quantity, not the total quantity
thomaspaulb Feb 15, 2021
3edd7ea
[IMP] buyer reference
thomaspaulb Feb 14, 2021
1a175f9
[UPD] README.rst
OCA-git-bot Sep 3, 2023
1708a06
[BOT] post-merge updates
OCA-git-bot Sep 30, 2023
ccd6de1
Update translation files
weblate Oct 9, 2023
db46683
account_invoice_ubl: fix tests and split common
simahawk Nov 21, 2023
578ab17
[BOT] post-merge updates
OCA-git-bot Nov 21, 2023
3cb2131
account_invoice_*: boost tests
simahawk Nov 21, 2023
50e2f9e
Translated using Weblate (Spanish)
Ivorra78 Nov 25, 2023
b0f21cc
[BOT] post-merge updates
OCA-git-bot Nov 27, 2023
c503bb4
[IMP] account_invoice_ubl: black, isort, prettier
jbaudoux Dec 11, 2023
898fdb5
Use invoice/sale order line taxes, not product taxes as they can be e…
thomaspaulb Feb 14, 2021
47da7e8
account_invoice_ubl: pylint
jbaudoux Dec 11, 2023
39f9ddd
[MIG] account_invoice_ubl: Migration to 16.0
jbaudoux Dec 11, 2023
de98ce5
[FIX] account_invoice_ubl: amount & taxes
jbaudoux Dec 11, 2023
c7b77d4
[FIX] account_invoice_ubl: Fix CreditNote
jbaudoux Jul 3, 2023
0d3f89a
[FIX] account_invoice_ubl: Fix OrderReference
jbaudoux Dec 17, 2023
08abb81
[FIX] account_invoice_ubl: Fix CreditNote
jbaudoux Dec 27, 2023
561b5ee
[FIX] account_invoice_ubl: Fix CreditNote
jbaudoux Dec 27, 2023
d72817d
[FIX] account_invoice_ubl: Fix report rendintion
lmignon Mar 14, 2024
b167219
account_invoice_ubl: exclude note lines in UBL
jbaudoux Dec 4, 2024
75e5833
account_invoice_ubl: fix tax
jbaudoux Dec 4, 2024
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
102 changes: 102 additions & 0 deletions account_invoice_ubl/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
===================
Account Invoice UBL
===================

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

.. |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/16.0/account_invoice_ubl
:alt: OCA/edi
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-account_invoice_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=16.0
:alt: Try me on Runboat

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

This module adds support for UBL, the `Universal Business Language (UBL)
<http://ubl.xml.org/>`_ standard, on invoices. The UBL 2.1 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>`_).

With this module, you can generate customer invoices/refunds:

* in PDF format with an embedded UBL XML file
* as an XML file with an optional embedded PDF file

This module supports UBL version 2.1 (used by default) and 2.0.

**Table of contents**

.. contents::
:local:

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

In the menu *Invoicing > Configuration > Settings > Invoicing*, under
*Electronic Invoices*, check the value of 2 options:

* *XML Format embedded in PDF invoice* : if you want to have an UBL XML file
embedded inside the PDF invoice, set it to
*Universal Business Language (UBL)*
* if you work directly with XML invoices and you want to have the PDF invoice
in base64 inside the XML file, enable the *Embed PDF in UBL XML Invoice*.

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:%20account_invoice_ubl%0Aversion:%2016.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
* Onestein

Contributors
~~~~~~~~~~~~

* Alexis de Lattre <[email protected]>
* Andrea Stirpe <[email protected]>
* Foram Shah <[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/16.0/account_invoice_ubl>`_ project on GitHub.

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

from . import models
from .hooks import set_xml_format_in_pdf_invoice_to_ubl
from .hooks import remove_ubl_xml_format_in_pdf_invoice
25 changes: 25 additions & 0 deletions account_invoice_ubl/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Copyright 2016-2018 Akretion (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 UBL",
"version": "16.0.1.0.0",
"category": "Accounting & Finance",
"license": "AGPL-3",
"summary": "Generate UBL XML file for customer invoices/refunds",
"author": "Akretion,Onestein,BCIM,Odoo Community Association (OCA)",
"maintainers": ["jbaudoux"],
"website": "https://github.com/OCA/edi",
"depends": [
"account_einvoice_generate",
"account_payment_partner",
"base_ubl_payment",
"account_tax_unece",
"pdf_helper",
],
"data": ["views/account_move.xml", "views/res_config_settings.xml"],
"post_init_hook": "set_xml_format_in_pdf_invoice_to_ubl",
"uninstall_hook": "remove_ubl_xml_format_in_pdf_invoice",
"installable": True,
}
18 changes: 18 additions & 0 deletions account_invoice_ubl/hooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# Copyright 2018 Akretion (http://www.akretion.com)
# @author: Alexis de Lattre <[email protected]>
# Copyright 2019 Onestein (<https://www.onestein.eu>)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import SUPERUSER_ID, api


def set_xml_format_in_pdf_invoice_to_ubl(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
companies = env["res.company"].search([])
companies.write({"xml_format_in_pdf_invoice": "ubl"})


def remove_ubl_xml_format_in_pdf_invoice(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
companies = env["res.company"].search([("xml_format_in_pdf_invoice", "=", "ubl")])
companies.write({"xml_format_in_pdf_invoice": "none"})
94 changes: 94 additions & 0 deletions account_invoice_ubl/i18n/account_invoice_ubl.pot
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_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_ubl
#: model:ir.model,name:account_invoice_ubl.model_res_company
msgid "Companies"
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_res_config_settings
msgid "Config Settings"
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_account_move__display_name
#: model:ir.model.fields,field_description:account_invoice_ubl.field_ir_actions_report__display_name
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__display_name
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_config_settings__display_name
msgid "Display Name"
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__embed_pdf_in_ubl_xml_invoice
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_config_settings__embed_pdf_in_ubl_xml_invoice
msgid "Embed PDF in UBL XML Invoice"
msgstr ""

#. module: account_invoice_ubl
#: model_terms:ir.ui.view,arch_db:account_invoice_ubl.view_move_form
msgid "Generate UBL XML File"
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_account_move__id
#: model:ir.model.fields,field_description:account_invoice_ubl.field_ir_actions_report__id
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__id
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_config_settings__id
msgid "ID"
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model.fields,help:account_invoice_ubl.field_res_company__embed_pdf_in_ubl_xml_invoice
#: model:ir.model.fields,help:account_invoice_ubl.field_res_config_settings__embed_pdf_in_ubl_xml_invoice
msgid ""
"If active, the standalone UBL Invoice XML file will include the PDF of the "
"invoice in base64 under the node 'AdditionalDocumentReference'. For example,"
" to be compliant with the e-fff standard used in Belgium, you should "
"activate this option."
msgstr ""

#. module: account_invoice_ubl
#: model_terms:ir.ui.view,arch_db:account_invoice_ubl.view_account_config_settings
msgid "Include the PDF of the invoice in the standalone UBL Invoice XML file."
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_account_move
msgid "Journal Entry"
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_account_move____last_update
#: model:ir.model.fields,field_description:account_invoice_ubl.field_ir_actions_report____last_update
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company____last_update
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_config_settings____last_update
msgid "Last Modified on"
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_ir_actions_report
msgid "Report Action"
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model.fields.selection,name:account_invoice_ubl.selection__res_company__xml_format_in_pdf_invoice__ubl
msgid "Universal Business Language (UBL)"
msgstr ""

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__xml_format_in_pdf_invoice
msgid "XML Format embedded in PDF invoice"
msgstr ""
108 changes: 108 additions & 0 deletions account_invoice_ubl/i18n/es.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_ubl
#
# Translators:
# enjolras <[email protected]>, 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: 2023-11-25 11:34+0000\n"
"Last-Translator: Ivorra78 <[email protected]>\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"
"X-Generator: Weblate 4.17\n"

#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_res_company
msgid "Companies"
msgstr "Compañías"

#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_res_config_settings
msgid "Config Settings"
msgstr "Ajustes de Configuración"

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_account_move__display_name
#: model:ir.model.fields,field_description:account_invoice_ubl.field_ir_actions_report__display_name
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__display_name
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_config_settings__display_name
msgid "Display Name"
msgstr "Mostrar Nombre"

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__embed_pdf_in_ubl_xml_invoice
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_config_settings__embed_pdf_in_ubl_xml_invoice
msgid "Embed PDF in UBL XML Invoice"
msgstr "Incrustar PDF en Factura XML UBL"

#. module: account_invoice_ubl
#: model_terms:ir.ui.view,arch_db:account_invoice_ubl.view_move_form
msgid "Generate UBL XML File"
msgstr "Incrustar PDF en Factura XML UBL"

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_account_move__id
#: model:ir.model.fields,field_description:account_invoice_ubl.field_ir_actions_report__id
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__id
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_config_settings__id
msgid "ID"
msgstr "ID"

#. module: account_invoice_ubl
#: model:ir.model.fields,help:account_invoice_ubl.field_res_company__embed_pdf_in_ubl_xml_invoice
#: model:ir.model.fields,help:account_invoice_ubl.field_res_config_settings__embed_pdf_in_ubl_xml_invoice
msgid ""
"If active, the standalone UBL Invoice XML file will include the PDF of the "
"invoice in base64 under the node 'AdditionalDocumentReference'. For example, "
"to be compliant with the e-fff standard used in Belgium, you should activate "
"this option."
msgstr ""
"Si está activada, el archivo XML de factura UBL independiente incluirá el "
"PDF de la factura en base64 en el nodo 'AdditionalDocumentReference'. Por "
"ejemplo, para cumplir con la norma e-fff utilizada en Bélgica, debe activar "
"esta opción."

#. module: account_invoice_ubl
#: model_terms:ir.ui.view,arch_db:account_invoice_ubl.view_account_config_settings
msgid "Include the PDF of the invoice in the standalone UBL Invoice XML file."
msgstr ""
"Incluir el PDF de la factura en el archivo XML de factura UBL independiente."

#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_account_move
msgid "Journal Entry"
msgstr "Entrada Diaria"

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_account_move____last_update
#: model:ir.model.fields,field_description:account_invoice_ubl.field_ir_actions_report____last_update
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company____last_update
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_config_settings____last_update
msgid "Last Modified on"
msgstr "Última Modificación el"

#. module: account_invoice_ubl
#: model:ir.model,name:account_invoice_ubl.model_ir_actions_report
msgid "Report Action"
msgstr "Informar Acción"

#. module: account_invoice_ubl
#: model:ir.model.fields.selection,name:account_invoice_ubl.selection__res_company__xml_format_in_pdf_invoice__ubl
msgid "Universal Business Language (UBL)"
msgstr "Lenguaje Comercial Universal (LCU)"

#. module: account_invoice_ubl
#: model:ir.model.fields,field_description:account_invoice_ubl.field_res_company__xml_format_in_pdf_invoice
msgid "XML Format embedded in PDF invoice"
msgstr "Formato XML integrado en factura PDF"

#~ msgid "Invoice"
#~ msgstr "Factura"
Loading
Loading