Skip to content

Commit 3aef465

Browse files
committed
Merge PR #949 into 17.0
Signed-off-by alexis-via
2 parents befd9c0 + 91d4714 commit 3aef465

16 files changed

+784
-0
lines changed

base_facturx/README.rst

+126
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
=============
2+
Base Factur-X
3+
=============
4+
5+
..
6+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
7+
!! This file is generated by oca-gen-addon-readme !!
8+
!! changes will be overwritten. !!
9+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10+
!! source digest: sha256:a38a4291df4f47955dee926bc6ad7f84ad890c24f0b1cf4d0de95432380bc223
11+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
12+
13+
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
14+
:target: https://odoo-community.org/page/development-status
15+
:alt: Beta
16+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
17+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
18+
:alt: License: AGPL-3
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github
20+
:target: https://github.com/OCA/edi/tree/17.0/base_facturx
21+
:alt: OCA/edi
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/edi-17-0/edi-17-0-base_facturx
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=17.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
30+
31+
This is the base module for the implementation of the
32+
`Factur-X <http://fnfe-mpe.org/factur-x/factur-x_en/>`__ and
33+
`ZUGFeRD <https://www.ferd-net.de/standards/was-ist-zugferd/index.html>`__
34+
standards. The standard Factur-X 1.0 is the same as ZUGFeRD 2.1 (the
35+
name Factur-X is always used in France, whereas in Germany many people
36+
use the name ZUGFeRD). It is a standard based on
37+
`CII <http://tfig.unece.org/contents/cross-industry-invoice-cii.htm>`__
38+
(Cross-Industry Invoice) for electronic invoicing.
39+
40+
The great idea of the Factur-X/ZUGFeRD standard is to embed an XML file
41+
inside the PDF invoice to carry structured information about the
42+
invoice.
43+
44+
**Table of contents**
45+
46+
.. contents::
47+
:local:
48+
49+
Configuration
50+
=============
51+
52+
To configure this module, you need to:
53+
54+
- go to the menu *Inventory > Configuration > Units of Measures > UoM*
55+
and check the *UNECE Code* for the units of measures.
56+
- go to the menu *Invoicing > Configuration > Accounting > Taxes* and,
57+
for each tax, set a *UNECE Type Code* and a *UNECE Category Code*.
58+
- go to the menu *Invoicing > Configuration > Management > Payment
59+
Methods* (to see that menu entry, the module *account_payment_mode*
60+
must be installed) and assign a *UNECE Code* to the payment methods
61+
that are selected in the payment modes.
62+
63+
To avoid the manual configuration of taxes, look for a module
64+
*l10n_XX_account_tax_unece* in the OCA project of your localization (it
65+
exists at least for the Netherlands and France). If such a module exists
66+
in your localization, install it and it will auto-configure the taxes
67+
created by your localization.
68+
69+
Usage
70+
=====
71+
72+
This module doesn't do anything by itself, but it is used by 2 other
73+
modules:
74+
75+
- *account_invoice_facturx* that generate Factur-X 1.0 (i.e. ZUGFeRD
76+
2.1) customer invoices/refunds,
77+
- *account_invoice_import_facturx* that imports ZUGFeRD/Factur-X
78+
supplier invoices/refunds (all versions, including ZUGFeRD 1.0).
79+
80+
Bug Tracker
81+
===========
82+
83+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi/issues>`_.
84+
In case of trouble, please check there if your issue has already been reported.
85+
If you spotted it first, help us to smash it by providing a detailed and welcomed
86+
`feedback <https://github.com/OCA/edi/issues/new?body=module:%20base_facturx%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
87+
88+
Do not contact contributors directly about support or help with technical issues.
89+
90+
Credits
91+
=======
92+
93+
Authors
94+
-------
95+
96+
* Akretion
97+
98+
Contributors
99+
------------
100+
101+
- Alexis de Lattre <alexis.delattre@akretion.com>
102+
103+
Maintainers
104+
-----------
105+
106+
This module is maintained by the OCA.
107+
108+
.. image:: https://odoo-community.org/logo.png
109+
:alt: Odoo Community Association
110+
:target: https://odoo-community.org
111+
112+
OCA, or the Odoo Community Association, is a nonprofit organization whose
113+
mission is to support the collaborative development of Odoo features and
114+
promote its widespread use.
115+
116+
.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
117+
:target: https://github.com/alexis-via
118+
:alt: alexis-via
119+
120+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
121+
122+
|maintainer-alexis-via|
123+
124+
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/17.0/base_facturx>`_ project on GitHub.
125+
126+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

base_facturx/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models

base_facturx/__manifest__.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Copyright 2016-2022 Akretion France (http://www.akretion.com/)
2+
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
{
6+
"name": "Base Factur-X",
7+
"version": "17.0.1.0.0",
8+
"category": "Invoicing Management",
9+
"license": "AGPL-3",
10+
"summary": "Base module for Factur-X/ZUGFeRD",
11+
"author": "Akretion,Odoo Community Association (OCA)",
12+
"maintainers": ["alexis-via"],
13+
"website": "https://github.com/OCA/edi",
14+
"depends": ["uom_unece", "account_tax_unece", "account_payment_unece"],
15+
"installable": True,
16+
}

base_facturx/i18n/base_facturx.pot

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_facturx
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 16.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: base_facturx
17+
#: model:ir.model,name:base_facturx.model_base_facturx
18+
msgid "Common methods to generate and parse Factur-X and Order-X"
19+
msgstr ""

base_facturx/i18n/base_zugferd.pot

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_zugferd
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 10.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: <>\n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: base_zugferd
17+
#: model:ir.model,name:base_zugferd.model_base_facturx
18+
msgid "Common methods to generate and parse Factur-X invoices"
19+
msgstr ""
20+
21+
#. module: base_zugferd
22+
#: model:ir.model.fields,field_description:base_zugferd.field_base_facturx_display_name
23+
msgid "Display Name"
24+
msgstr ""
25+
26+
#. module: base_zugferd
27+
#: model:ir.model.fields,field_description:base_zugferd.field_base_facturx_id
28+
msgid "ID"
29+
msgstr ""
30+
31+
#. module: base_zugferd
32+
#: model:ir.model.fields,field_description:base_zugferd.field_base_facturx___last_update
33+
msgid "Last Modified on"
34+
msgstr ""
35+
36+
#. module: base_zugferd
37+
#: code:addons/base_zugferd/models/base_facturx.py:46
38+
#, python-format
39+
msgid "The %s XML file is not valid against the official XML Schema Definition. The XML file and the full error have been written in the server logs. Here is the error, which may give you an idea on the cause of the problem : %s."
40+
msgstr ""
41+
42+
#. module: base_zugferd
43+
#: code:addons/base_zugferd/models/base_facturx.py:29
44+
#, python-format
45+
msgid "Wrong level '%s' for Factur-X invoice."
46+
msgstr ""
47+

base_facturx/i18n/es.po

+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_zugferd
4+
#
5+
# Translators:
6+
# enjolras <yo@miguelrevilla.com>, 2018
7+
msgid ""
8+
msgstr ""
9+
"Project-Id-Version: Odoo Server 10.0\n"
10+
"Report-Msgid-Bugs-To: \n"
11+
"POT-Creation-Date: 2018-03-12 01:43+0000\n"
12+
"PO-Revision-Date: 2023-08-07 11:09+0000\n"
13+
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\n"
14+
"Language-Team: Spanish (https://www.transifex.com/oca/teams/23907/es/)\n"
15+
"Language: es\n"
16+
"MIME-Version: 1.0\n"
17+
"Content-Type: text/plain; charset=UTF-8\n"
18+
"Content-Transfer-Encoding: \n"
19+
"Plural-Forms: nplurals=2; plural=n != 1;\n"
20+
"X-Generator: Weblate 4.17\n"
21+
22+
#. module: base_facturx
23+
#: model:ir.model,name:base_facturx.model_base_facturx
24+
msgid "Common methods to generate and parse Factur-X and Order-X"
25+
msgstr "Métodos habituales para generar y analizar Factur-X y Order-X"
26+
27+
#~ msgid "Display Name"
28+
#~ msgstr "Nombre mostrado"
29+
30+
#~ msgid "Last Modified on"
31+
#~ msgstr "Última modificación el"

base_facturx/i18n/fr.po

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * base_facturx
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"PO-Revision-Date: 2023-06-27 19:08+0000\n"
10+
"Last-Translator: Alexis de Lattre <alexis@via.ecp.fr>\n"
11+
"Language-Team: none\n"
12+
"Language: fr\n"
13+
"MIME-Version: 1.0\n"
14+
"Content-Type: text/plain; charset=UTF-8\n"
15+
"Content-Transfer-Encoding: \n"
16+
"Plural-Forms: nplurals=2; plural=n > 1;\n"
17+
"X-Generator: Weblate 4.17\n"
18+
19+
#. module: base_facturx
20+
#: model:ir.model,name:base_facturx.model_base_facturx
21+
msgid "Common methods to generate and parse Factur-X and Order-X"
22+
msgstr "Méthodes communes pour générer et lire Factur-X et Order-X"
23+
24+
#~ msgid "Display Name"
25+
#~ msgstr "Nom affiché"

base_facturx/models/__init__.py

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import base_facturx

base_facturx/models/base_facturx.py

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2017-2022 Akretion France
2+
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
3+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
4+
5+
from odoo import models
6+
7+
8+
class BaseFacturX(models.AbstractModel):
9+
_name = "base.facturx"
10+
_description = "Common methods to generate and parse Factur-X and Order-X"
11+
12+
# This class will certainly start to be used with the implementation
13+
# of Order-X sooner or later: http://fnfe-mpe.org/factur-x/order-x/

base_facturx/pyproject.toml

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[build-system]
2+
requires = ["whool"]
3+
build-backend = "whool.buildapi"

base_facturx/readme/CONFIGURE.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
To configure this module, you need to:
2+
3+
- go to the menu *Inventory \> Configuration \> Units of Measures \>
4+
UoM* and check the *UNECE Code* for the units of measures.
5+
- go to the menu *Invoicing \> Configuration \> Accounting \> Taxes*
6+
and, for each tax, set a *UNECE Type Code* and a *UNECE Category
7+
Code*.
8+
- go to the menu *Invoicing \> Configuration \> Management \> Payment
9+
Methods* (to see that menu entry, the module *account_payment_mode*
10+
must be installed) and assign a *UNECE Code* to the payment methods
11+
that are selected in the payment modes.
12+
13+
To avoid the manual configuration of taxes, look for a module
14+
*l10n_XX_account_tax_unece* in the OCA project of your localization (it
15+
exists at least for the Netherlands and France). If such a module exists
16+
in your localization, install it and it will auto-configure the taxes
17+
created by your localization.

base_facturx/readme/CONTRIBUTORS.md

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Alexis de Lattre \<<alexis.delattre@akretion.com>\>

base_facturx/readme/DESCRIPTION.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
This is the base module for the implementation of the
2+
[Factur-X](http://fnfe-mpe.org/factur-x/factur-x_en/) and
3+
[ZUGFeRD](https://www.ferd-net.de/standards/was-ist-zugferd/index.html)
4+
standards. The standard Factur-X 1.0 is the same as ZUGFeRD 2.1 (the
5+
name Factur-X is always used in France, whereas in Germany many people
6+
use the name ZUGFeRD). It is a standard based on
7+
[CII](http://tfig.unece.org/contents/cross-industry-invoice-cii.htm)
8+
(Cross-Industry Invoice) for electronic invoicing.
9+
10+
The great idea of the Factur-X/ZUGFeRD standard is to embed an XML file
11+
inside the PDF invoice to carry structured information about the
12+
invoice.

base_facturx/readme/USAGE.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
This module doesn't do anything by itself, but it is used by 2 other
2+
modules:
3+
4+
- *account_invoice_facturx* that generate Factur-X 1.0 (i.e. ZUGFeRD
5+
2.1) customer invoices/refunds,
6+
- *account_invoice_import_facturx* that imports ZUGFeRD/Factur-X
7+
supplier invoices/refunds (all versions, including ZUGFeRD 1.0).
9.23 KB
Loading

0 commit comments

Comments
 (0)