Initial commit: OCA Edi packages (42 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:05 +02:00
commit df976c03db
2184 changed files with 571602 additions and 0 deletions

View file

@ -0,0 +1,47 @@
# Account Invoice Factur-X
Odoo addon: account_invoice_facturx
## Installation
```bash
pip install odoo-bringout-oca-edi-framework-account_invoice_facturx
```
## Dependencies
This addon depends on:
- account_einvoice_generate
- account_payment_partner
- base_facturx
- base_vat
## Manifest Information
- **Name**: Account Invoice Factur-X
- **Version**: 16.0.2.0.0
- **Category**: Invoicing Management
- **License**: AGPL-3
- **Installable**: True
## Source
Based on [OCA/edi-framework](https://github.com/OCA/edi-framework) branch 16.0, addon `account_invoice_facturx`.
## License
This package maintains the original AGPL-3 license from the upstream Odoo project.
## Documentation
- Overview: doc/OVERVIEW.md
- Architecture: doc/ARCHITECTURE.md
- Models: doc/MODELS.md
- Controllers: doc/CONTROLLERS.md
- Wizards: doc/WIZARDS.md
- Install: doc/INSTALL.md
- Usage: doc/USAGE.md
- Configuration: doc/CONFIGURATION.md
- Dependencies: doc/DEPENDENCIES.md
- Troubleshooting: doc/TROUBLESHOOTING.md
- FAQ: doc/FAQ.md

View file

@ -0,0 +1,108 @@
========================
Account Invoice Factur-X
========================
..
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3668b0b6e968fc509056743e8ed14c23e904d1a614837772256e73fe0684a434
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |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_facturx
: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_facturx
: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|
With this module, the PDF customer invoices and refunds generated by the Qweb reporting engine of Odoo will comply with the `Factur-X <http://fnfe-mpe.org/factur-x/>`__ standard. The Factur-X standard is an e-invoicing standard for France and Germany released on December 31st 2017. In Germany, it is also known as the `ZUGFeRD 2.0 <http://www.ferd-net.de/aktuelles/meldungen/verabschiedung-zugferd-2.0_profil-en16931.html/>`_ standard. This standard is based on `CII <http://tfig.unece.org/contents/cross-industry-invoice-cii.htm>`_ (Cross-Industry Invoice) for electronic invoicing. The great idea of the ZUGFeRD/Factur-X standard is to embed an XML file inside the PDF invoice to carry structured information about the invoice. So, with a ZUGFeRD/Factur-X PDF invoice:
* no need to change your habbits and those of your customers: you can still send your PDF invoices by email as usual.
* customers equiped with a modern accouting software will be able to import the invoice automatically as supplier invoice by taking advantage of the embedded XML file,
* customers with an ancient accounting software will just open the PDF file with their PDF reader and manually encode the document as supplier invoice in their accounting software.
**Table of contents**
.. contents::
:local:
Installation
============
**WARNING**: there is an alternative implementation of Factur-X in the module **account_edi_ubl_cii** of the official addons. If both modules are installed, the XML embedded in the PDF is the XML generated by the module **account_edi_ubl_cii**. To avoid that, you need to uninstall the module **account_edi_ubl_cii**.
This module requires a recent version of the Python library `factur-x <https://github.com/akretion/factur-x>`__ developped by Akretion. Note that the factur-x library depends on PyPDF2 for the low-level PDF manipulation. To install it, run:
.. code::
pip3 install --upgrade factur-x
Configuration
=============
In the menu *Invoicing > Configuration > Settings*, check these options:
* *XML Format embedded in PDF invoice*: if you want to generate Factur-X invoices, this option must be set to *Factur-X (CII)*
* the *Factur-X Level*: unless you have a good reason, you should keep the default value *EN 16931 (Comfort)*
* *Factur-X Refund Type*: choose the type of the XML invoice for customer refunds (keep the default value if you are not familiar with this setting).
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_facturx%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
Contributors
~~~~~~~~~~~~
* Alexis de Lattre <alexis.delattre@akretion.com>
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.
.. |maintainer-alexis-via| image:: https://github.com/alexis-via.png?size=40px
:target: https://github.com/alexis-via
:alt: alexis-via
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
|maintainer-alexis-via|
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/16.0/account_invoice_facturx>`_ project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

View file

@ -0,0 +1,3 @@
from . import models
from . import wizards
from .hooks import set_xml_format_in_pdf_invoice_to_facturx

View file

@ -0,0 +1,28 @@
# Copyright 2016-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
{
"name": "Account Invoice Factur-X",
"version": "16.0.2.0.0",
"category": "Invoicing Management",
"license": "AGPL-3",
"summary": "Generate Factur-X/ZUGFeRD customer invoices",
"author": "Akretion,Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"website": "https://github.com/OCA/edi",
"depends": [
"account_einvoice_generate",
"account_payment_partner",
"base_facturx",
"base_vat",
],
"external_dependencies": {"python": ["factur-x"]},
"data": [
"views/res_partner.xml",
"views/account_move.xml",
"views/res_config_settings.xml",
],
"post_init_hook": "set_xml_format_in_pdf_invoice_to_facturx",
"installable": True,
}

View file

@ -0,0 +1,13 @@
# Copyright 2018-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
from odoo import SUPERUSER_ID, api
def set_xml_format_in_pdf_invoice_to_facturx(cr, registry):
env = api.Environment(cr, SUPERUSER_ID, {})
companies = env["res.company"].search(
[("xml_format_in_pdf_invoice", "in", (False, "none"))]
)
companies.write({"xml_format_in_pdf_invoice": "factur-x"})

View file

@ -0,0 +1,162 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_factur-x
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.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_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:751
#, python-format
msgid "%s: %s %s dated %s"
msgstr ""
#. module: account_invoice_factur-x
#: selection:res.company,facturx_level:0
msgid "Basic"
msgstr ""
#. module: account_invoice_factur-x
#: selection:res.company,facturx_level:0
msgid "Basic without lines"
msgstr ""
#. module: account_invoice_factur-x
#: model:ir.model,name:account_invoice_factur-x.model_res_company
msgid "Companies"
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:50
#, python-format
msgid "Country is not set on partner '%s'. In the Factur-X standard, the country is required for buyer and seller."
msgstr ""
#. module: account_invoice_factur-x
#: selection:res.company,facturx_level:0
msgid "EN 16931 (Comfort)"
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:750
#, python-format
msgid "Factur-X"
msgstr ""
#. module: account_invoice_factur-x
#: model:ir.ui.view,arch_db:account_invoice_factur-x.view_account_config_settings
msgid "Factur-X Invoices"
msgstr ""
#. module: account_invoice_factur-x
#: model:ir.model.fields,field_description:account_invoice_factur-x.field_account_config_settings_facturx_level
#: model:ir.model.fields,field_description:account_invoice_factur-x.field_res_company_facturx_level
msgid "Factur-X Level"
msgstr ""
#. module: account_invoice_factur-x
#: model:ir.model.fields,field_description:account_invoice_factur-x.field_res_company_facturx_logo
msgid "Factur-X Logo"
msgstr ""
#. module: account_invoice_factur-x
#: model:ir.model.fields,field_description:account_invoice_factur-x.field_account_config_settings_facturx_refund_type
#: model:ir.model.fields,field_description:account_invoice_factur-x.field_res_company_facturx_refund_type
msgid "Factur-X Refund Type"
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:747
#: model:ir.model,name:account_invoice_factur-x.model_account_invoice
#, python-format
msgid "Invoice"
msgstr ""
#. module: account_invoice_factur-x
#: model:ir.model.fields,help:account_invoice_factur-x.field_res_company_facturx_logo
msgid "Logo to include in the visible part of Factur-X invoices"
msgstr ""
#. module: account_invoice_factur-x
#: selection:res.company,facturx_level:0
msgid "Minimum"
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:374
#: code:addons/account_invoice_factur-x/models/account_invoice.py:645
#, python-format
msgid "Missing UNECE Tax Category on tax '%s'"
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:371
#: code:addons/account_invoice_factur-x/models/account_invoice.py:638
#, python-format
msgid "Missing UNECE Tax Type on tax '%s'"
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:444
#, python-format
msgid "Missing UNECE code on payment export type '%s'"
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:346
#, python-format
msgid "No specific payment term selected"
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:747
#, python-format
msgid "Refund"
msgstr ""
#. module: account_invoice_factur-x
#: model:ir.model,name:account_invoice_factur-x.model_report
msgid "Report"
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:555
#, python-format
msgid "The Factur-X standard specify that unit prices can't be negative. The unit price of line '%s' is negative. You should generate a customer refund for that line."
msgstr ""
#. module: account_invoice_factur-x
#: selection:res.company,facturx_refund_type:0
msgid "Type 380 with negative amounts"
msgstr ""
#. module: account_invoice_factur-x
#: selection:res.company,facturx_refund_type:0
msgid "Type 381 with positive amounts"
msgstr ""
#. module: account_invoice_factur-x
#: model:ir.model.fields,help:account_invoice_factur-x.field_account_config_settings_facturx_level
#: model:ir.model.fields,help:account_invoice_factur-x.field_res_company_facturx_level
msgid "Unless if you have a good reason, you should always select 'EN 16931 (Comfort)', which is the default value."
msgstr ""
#. module: account_invoice_factur-x
#: code:addons/account_invoice_factur-x/models/account_invoice.py:290
#, python-format
msgid "Wire transfer"
msgstr ""
#. module: account_invoice_factur-x
#: model:ir.model,name:account_invoice_factur-x.model_account_config_settings
msgid "account.config.settings"
msgstr ""

View file

@ -0,0 +1,211 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_facturx
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.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_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "(no date)"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basic
msgid "Basic"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basicwl
msgid "Basic without lines"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_company
msgid "Companies"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_config_settings
msgid "Config Settings"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Country is not set on partner '%s'. In the Factur-X standard, the country is"
" required for buyer and seller."
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Discount"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__en16931
msgid "EN 16931 (Comfort)"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__extended
msgid "Extended"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Factur-X"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__xml_format_in_pdf_invoice__factur-x
msgid "Factur-X (CII)"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_level
msgid "Factur-X Level"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_logo
msgid "Factur-X Logo"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_refund_type
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_refund_type
msgid "Factur-X Refund Type"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Factur-X {invoice_type} {invoice_number} dated {invoice_date} issued by "
"{company_name}"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Invoice"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_account_move
msgid "Journal Entry"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_logo
msgid "Logo to include in the visible part of Factur-X invoices"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__minimum
msgid "Minimum"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Category on tax '%s'"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Type on tax '%s'"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE code on payment method '%s'"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No invoice line label"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No specific payment term selected"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Refund"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_ir_actions_report
msgid "Report Action"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__380
msgid "Type 380 with negative amounts"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__381
msgid "Type 381 with positive amounts"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,help:account_invoice_facturx.field_res_config_settings__facturx_level
msgid ""
"Unless if you have a good reason, you should always select 'EN 16931 "
"(Comfort)', which is the default value."
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Wire transfer"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__xml_format_in_pdf_invoice
msgid "XML Format embedded in PDF invoice"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "{company_name}: {invoice_type} {invoice_number} dated {invoice_date}"
msgstr ""

View file

@ -0,0 +1,237 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_factur-x
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-02-19 18:06+0000\n"
"Last-Translator: davidbeckercbl <becker@cbl-computer.de>\n"
"Language-Team: none\n"
"Language: de\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 5.6.2\n"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "(no date)"
msgstr "(kein Datum)"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basic
msgid "Basic"
msgstr "Standard"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basicwl
msgid "Basic without lines"
msgstr "Standard ohne Zeilen"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_company
msgid "Companies"
msgstr "Firmen"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_config_settings
msgid "Config Settings"
msgstr "Konfigurationseinstellungen"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Country is not set on partner '%s'. In the Factur-X standard, the country is "
"required for buyer and seller."
msgstr ""
"Das Land wurde für den Partner '%s' nicht gesetzt. Im Factur-X standard, ist "
"das Setzen des Landes für Käufer und Verkäufer zwingend erforderlich."
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Discount"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__en16931
msgid "EN 16931 (Comfort)"
msgstr "EN 16931 (Komfort)"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__extended
msgid "Extended"
msgstr "Erweitert"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Factur-X"
msgstr "Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__xml_format_in_pdf_invoice__factur-x
msgid "Factur-X (CII)"
msgstr "Factur-X (CII)"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_level
msgid "Factur-X Level"
msgstr "Factur-X Ebene"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_logo
msgid "Factur-X Logo"
msgstr "Factur-X Logo"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_refund_type
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_refund_type
msgid "Factur-X Refund Type"
msgstr "Factur-X Erstattungstyp"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Factur-X {invoice_type} {invoice_number} dated {invoice_date} issued by "
"{company_name}"
msgstr ""
"Factur-X {invoice_type} {invoice_number} vom {invoice_date} ausgestellt von "
"{company_name}"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Invoice"
msgstr "Rechnung"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_account_move
msgid "Journal Entry"
msgstr "Journaleintrag"
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_logo
msgid "Logo to include in the visible part of Factur-X invoices"
msgstr "Logo für den sichtbaren Teil der Factur-X Rechnungen"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__minimum
msgid "Minimum"
msgstr "Minimum"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Category on tax '%s'"
msgstr "Fehlende UNECE Steuerkategorie für Steuer '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Type on tax '%s'"
msgstr "Fehlende UNECE Steuerkategorie für Steuer '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE code on payment method '%s'"
msgstr "Fehlender UNECE-Code für Zahlungsmethode '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No invoice line label"
msgstr ""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No specific payment term selected"
msgstr "Keine spezifische Zahlungsbedingung ausgewählt"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Refund"
msgstr "Erstattung"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_ir_actions_report
msgid "Report Action"
msgstr "Berichtsaktion"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__380
msgid "Type 380 with negative amounts"
msgstr "Typ 380 mit negativer Anzahl"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__381
msgid "Type 381 with positive amounts"
msgstr "Typ 381 mit negativer Anzahl"
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,help:account_invoice_facturx.field_res_config_settings__facturx_level
msgid ""
"Unless if you have a good reason, you should always select 'EN 16931 "
"(Comfort)', which is the default value."
msgstr ""
"Sofern Sie keinen triftigen Grund haben, sollten Sie immer 'EN 16931 "
"(Comfort)' auswählen, was der Standardwert ist."
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Wire transfer"
msgstr "Bargeldlose Bezahlung"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__xml_format_in_pdf_invoice
msgid "XML Format embedded in PDF invoice"
msgstr "XML-Format in PDF-Rechnung eingebettet"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "{company_name}: {invoice_type} {invoice_number} dated {invoice_date}"
msgstr "{company_name}: {invoice_type} {invoice_number} vom {invoice_date}"
#, python-format
#~ msgid ""
#~ "The Factur-X standard specify that unit prices can't be negative. The "
#~ "unit price of line '%s' is negative. You should generate a customer "
#~ "refund for that line."
#~ msgstr ""
#~ "Der Factur-X Standard legt fest die Preise einer Einheit nicht negativ "
#~ "sein dürfen. Der Preis der Einheit '%s' ist jedoch negativ. Sie sollten "
#~ "eine Kundengutschrift für diese Verkaufsposition erstellen."
#, python-format
#~ msgid "%s: %s %s dated %s"
#~ msgstr "%s: %s %s datiert %s"
#~ msgid "Factur-X Invoices"
#~ msgstr "Factur-X Rechnungen"

View file

@ -0,0 +1,241 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_factur-x
#
# Translators:
# enjolras <yo@miguelrevilla.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-05-15 07:39+0000\n"
"PO-Revision-Date: 2024-02-14 15:36+0000\n"
"Last-Translator: Ivorra78 <informatica@totmaterial.es>\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_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "(no date)"
msgstr "(sin fecha)"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basic
msgid "Basic"
msgstr "Básico"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basicwl
msgid "Basic without lines"
msgstr "Básico sin líneas"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_company
msgid "Companies"
msgstr "Compañías"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_config_settings
msgid "Config Settings"
msgstr "Ajustes de Configuración"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Country is not set on partner '%s'. In the Factur-X standard, the country is "
"required for buyer and seller."
msgstr ""
"El país no está establecido en el socio '%s'. En el estándar Factur-X se "
"requiere el país para comprador y vendedor."
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Discount"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__en16931
msgid "EN 16931 (Comfort)"
msgstr "EN 16931 (Comfort)"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__extended
msgid "Extended"
msgstr "Extendido"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Factur-X"
msgstr "Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__xml_format_in_pdf_invoice__factur-x
msgid "Factur-X (CII)"
msgstr "Factur-X (CII)"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_level
msgid "Factur-X Level"
msgstr "Nivel Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_logo
msgid "Factur-X Logo"
msgstr "Logotipo Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_refund_type
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_refund_type
msgid "Factur-X Refund Type"
msgstr "Tipo de reembolso Factur-X"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Factur-X {invoice_type} {invoice_number} dated {invoice_date} issued by "
"{company_name}"
msgstr ""
"Factur-X {invoice_type} {invoice_number} con fecha {invoice_date} emitida "
"por {company_name}"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Invoice"
msgstr "Factura"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_account_move
msgid "Journal Entry"
msgstr "Entrada diaria"
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_logo
msgid "Logo to include in the visible part of Factur-X invoices"
msgstr "Logotipo para incluir en la parte visible de las facturas Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__minimum
msgid "Minimum"
msgstr "Mínimo"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Category on tax '%s'"
msgstr "Falta la categoría fiscal de la UNECE (CEPE) en el impuesto \"%s\""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Type on tax '%s'"
msgstr "Falta el tipo de impuesto de la UNECE (CEPE) en el impuesto '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE code on payment method '%s'"
msgstr "Falta el código UNECE (CEPE) en el método de pago \"%s\""
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No invoice line label"
msgstr "Sin etiqueta de línea de factura"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No specific payment term selected"
msgstr "No se ha seleccionado ningún plazo de pago específico"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Refund"
msgstr "Reembolso"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_ir_actions_report
msgid "Report Action"
msgstr "Informar Acción"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__380
msgid "Type 380 with negative amounts"
msgstr "Tipo 380 con cantidades negativas"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__381
msgid "Type 381 with positive amounts"
msgstr "Tipo 381 con cantidades positivas"
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,help:account_invoice_facturx.field_res_config_settings__facturx_level
msgid ""
"Unless if you have a good reason, you should always select 'EN 16931 "
"(Comfort)', which is the default value."
msgstr ""
"A menos que tenga una buena razón, debería seleccionar siempre \"EN 16931 "
"(Confort)\", que es el valor por defecto."
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Wire transfer"
msgstr "Transferencia bancaria"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__xml_format_in_pdf_invoice
msgid "XML Format embedded in PDF invoice"
msgstr "Formato XML integrado en factura PDF"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "{company_name}: {invoice_type} {invoice_number} dated {invoice_date}"
msgstr ""
"{company_name}: {invoice_type} {invoice_number} con fecha {invoice_date}"
#, python-format
#~ msgid ""
#~ "The Factur-X standard specify that unit prices can't be negative. The "
#~ "unit price of line '%s' is negative. You should generate a customer "
#~ "refund for that line."
#~ msgstr ""
#~ "La norma Factur-X especifica que los precios unitarios no pueden ser "
#~ "negativos. El precio unitario de la línea '%s' es negativo. Debe generar "
#~ "un reembolso al cliente para esa línea."
#, python-format
#~ msgid "%s: %s %s dated %s"
#~ msgstr "%s: %s %s fechado %s"
#~ msgid "Factur-X Invoices"
#~ msgstr "Facturas Factur-X"

View file

@ -0,0 +1,240 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_factur-x
#
# Translators:
# Quentin THEURET <odoo@kerpeo.com>, 2018
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-01-29 11:54+0000\n"
"PO-Revision-Date: 2024-05-01 15:34+0000\n"
"Last-Translator: c2cdidier <didier.donze@camptocamp.com>\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"
"X-Generator: Weblate 4.17\n"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "(no date)"
msgstr "(pas de date)"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basic
msgid "Basic"
msgstr "Basique"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basicwl
msgid "Basic without lines"
msgstr "Basique sans ligne"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_company
msgid "Companies"
msgstr "Sociétés"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_config_settings
msgid "Config Settings"
msgstr "Configuration"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Country is not set on partner '%s'. In the Factur-X standard, the country is "
"required for buyer and seller."
msgstr ""
"Le pays n'est pas configuré sur le partenaire '%s'. Dans la norme Factur-X, "
"l'information du pays est obligatoire pour le vendeur et l'acheteur."
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Discount"
msgstr ""
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__en16931
msgid "EN 16931 (Comfort)"
msgstr "EN 16931 (Confort)"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__extended
msgid "Extended"
msgstr "Étendu"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Factur-X"
msgstr "Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__xml_format_in_pdf_invoice__factur-x
msgid "Factur-X (CII)"
msgstr "Factur-X (CII)"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_level
msgid "Factur-X Level"
msgstr "Niveau Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_logo
msgid "Factur-X Logo"
msgstr "Logo Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_refund_type
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_refund_type
msgid "Factur-X Refund Type"
msgstr "Type d'avoir Factur-X"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Factur-X {invoice_type} {invoice_number} dated {invoice_date} issued by "
"{company_name}"
msgstr ""
"Factur-X {invoice_type} {invoice_number} daté du {invoice_date} émis par "
"{company_name}"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Invoice"
msgstr "Facture"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_account_move
msgid "Journal Entry"
msgstr "Pièce comptable"
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_logo
msgid "Logo to include in the visible part of Factur-X invoices"
msgstr "Logo à inclure dans la partie visible des factures Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__minimum
msgid "Minimum"
msgstr "Minimum"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Category on tax '%s'"
msgstr "Catégorie de taxe UNECE manquante sur la taxe '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Type on tax '%s'"
msgstr "Type de taxe UNECE manquante sur la taxe '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE code on payment method '%s'"
msgstr "Code UNECE manquant sur la méthode de paiement '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No invoice line label"
msgstr "Pas d'étiquette de ligne de facturation"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No specific payment term selected"
msgstr "Aucune condition de paiement sélectionnée"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Refund"
msgstr "Avoir"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_ir_actions_report
msgid "Report Action"
msgstr "Rapport Action"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__380
msgid "Type 380 with negative amounts"
msgstr "Type 380 avec montants négatifs"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__381
msgid "Type 381 with positive amounts"
msgstr "Type 381 avec montants positifs"
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,help:account_invoice_facturx.field_res_config_settings__facturx_level
msgid ""
"Unless if you have a good reason, you should always select 'EN 16931 "
"(Comfort)', which is the default value."
msgstr ""
"Sauf cas particulier, vous devriez toujours choisir 'EN 16931 (Confort)', "
"qui est la valeur par défaut."
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Wire transfer"
msgstr "Virement bancaire"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__xml_format_in_pdf_invoice
msgid "XML Format embedded in PDF invoice"
msgstr "Format XML embarqué dans la facture PDF"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "{company_name}: {invoice_type} {invoice_number} dated {invoice_date}"
msgstr "{company_name}: {invoice_type} {invoice_number} daté du {invoice_date}"
#, python-format
#~ msgid ""
#~ "The Factur-X standard specify that unit prices can't be negative. The "
#~ "unit price of line '%s' is negative. You should generate a customer "
#~ "refund for that line."
#~ msgstr ""
#~ "La norme Factur-X spécifie que le prix unitaire ne peut être négatif. Le "
#~ "prix unitaire de la ligne '%s' est négatif. Vous devriez générer un avoir "
#~ "client pour cette ligne."
#, python-format
#~ msgid "%s: %s %s dated %s"
#~ msgstr "%s : %s %s daté le %s"
#~ msgid "Factur-X Invoices"
#~ msgstr "Factures Factur-X"

View file

@ -0,0 +1,230 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * account_invoice_facturx
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 16.0\n"
"Report-Msgid-Bugs-To: \n"
"PO-Revision-Date: 2025-04-28 09:23+0000\n"
"Last-Translator: mymage <stefano.consolaro@mymage.it>\n"
"Language-Team: none\n"
"Language: it\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 5.10.4\n"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "(no date)"
msgstr "(nessuna data)"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basic
msgid "Basic"
msgstr "Base"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__basicwl
msgid "Basic without lines"
msgstr "Base senza righe"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_company
msgid "Companies"
msgstr "Aziende"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_res_config_settings
msgid "Config Settings"
msgstr "Impostazioni configurazione"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Country is not set on partner '%s'. In the Factur-X standard, the country is "
"required for buyer and seller."
msgstr ""
"La nazione non è impostata nel partner '%s'. Nello standard Fatture-X, la "
"nazione è richiesta per gli acquisitori e i venditori."
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Discount"
msgstr "Sconto"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__en16931
msgid "EN 16931 (Comfort)"
msgstr "EN 16931 (Comfort)"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__extended
msgid "Extended"
msgstr "Esteso"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Factur-X"
msgstr "Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__xml_format_in_pdf_invoice__factur-x
msgid "Factur-X (CII)"
msgstr "Factur-X (CII)"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_level
msgid "Factur-X Level"
msgstr "Livello Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_logo
msgid "Factur-X Logo"
msgstr "Logo Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__facturx_refund_type
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_config_settings__facturx_refund_type
msgid "Factur-X Refund Type"
msgstr "Tipo rimborso Factur-X"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid ""
"Factur-X {invoice_type} {invoice_number} dated {invoice_date} issued by "
"{company_name}"
msgstr ""
"Factur-X {invoice_type} {invoice_number} datato {invoice_date} emesso da "
"{company_name}"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Invoice"
msgstr "Fattura"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_account_move
msgid "Journal Entry"
msgstr "Registrazione contabile"
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_logo
msgid "Logo to include in the visible part of Factur-X invoices"
msgstr "Logo da includere nella parte visibile delle fatture Factur-X"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_level__minimum
msgid "Minimum"
msgstr "Minimo"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Category on tax '%s'"
msgstr "Categoria imposta UNECE non presente nell'imposta '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE Tax Type on tax '%s'"
msgstr "Tipo imposta UNECE non presente nell'imposta '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Missing UNECE code on payment method '%s'"
msgstr "Codice UNECE non presente nel metodo di pagamento '%s'"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No invoice line label"
msgstr "Nessuna etichetta riga fattura"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "No specific payment term selected"
msgstr "Nessun termine di pagamento specifico selezionato"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Refund"
msgstr "Rimborso"
#. module: account_invoice_facturx
#: model:ir.model,name:account_invoice_facturx.model_ir_actions_report
msgid "Report Action"
msgstr "Azione resoconto"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__380
msgid "Type 380 with negative amounts"
msgstr "Tipo 380 con valori negativi"
#. module: account_invoice_facturx
#: model:ir.model.fields.selection,name:account_invoice_facturx.selection__res_company__facturx_refund_type__381
msgid "Type 381 with positive amounts"
msgstr "Tipo 381 con valori positivi"
#. module: account_invoice_facturx
#: model:ir.model.fields,help:account_invoice_facturx.field_res_company__facturx_level
#: model:ir.model.fields,help:account_invoice_facturx.field_res_config_settings__facturx_level
msgid ""
"Unless if you have a good reason, you should always select 'EN 16931 "
"(Comfort)', which is the default value."
msgstr ""
"Se non si ha un buon motivo, si dovrebbe sempre selezionare 'EN 16931 "
"(Comfort)', che è il valore predefinito."
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "Wire transfer"
msgstr "Bonifico bancario"
#. module: account_invoice_facturx
#: model:ir.model.fields,field_description:account_invoice_facturx.field_res_company__xml_format_in_pdf_invoice
msgid "XML Format embedded in PDF invoice"
msgstr "Formato XML incorporato nella fattura PDF"
#. module: account_invoice_facturx
#. odoo-python
#: code:addons/account_invoice_facturx/models/account_move.py:0
#, python-format
msgid "{company_name}: {invoice_type} {invoice_number} dated {invoice_date}"
msgstr "{company_name}: {invoice_type} {invoice_number} datata {invoice_date}"
#, python-format
#~ msgid ""
#~ "The Factur-X standard specify that unit prices can't be negative. The "
#~ "unit price of line '%s' is negative. You should generate a customer "
#~ "refund for that line."
#~ msgstr ""
#~ "Lo standard Factur-X indica che il prezzo unitario non può essere "
#~ "negativo. Il prezzo unitario della riga '%s' è negativo. Bisogna generare "
#~ "un rimborso cliente per la riga."

View file

@ -0,0 +1,3 @@
from . import res_company
from . import account_move
from . import ir_actions_report

View file

@ -0,0 +1,32 @@
# Copyright 2016-2022 Akretion France (http://www.akretion.com)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import models
class IrActionsReport(models.Model):
_inherit = "ir.actions.report"
def _render_qweb_pdf_prepare_streams(self, report_ref, data, res_ids=None):
# It works, but:
# - when you click on the "Print" button or use the "Print" menu,
# the XML file is regenerated even when the invoice is read from the attachment.
# - when you open the invoice from the attachment, you get the "original" XML
# file
collected_streams = super()._render_qweb_pdf_prepare_streams(
report_ref, data, res_ids=res_ids
)
amo = self.env["account.move"]
if (
collected_streams
and res_ids
and len(res_ids) == 1
and self._is_invoice_report(report_ref)
and not self.env.context.get("no_embedded_factur-x_xml")
):
move = amo.browse(res_ids)
if move._xml_format_in_pdf_invoice() == "factur-x":
pdf_bytesio = collected_streams[move.id]["stream"]
move.regular_pdf_invoice_to_facturx_invoice(pdf_bytesio)
return collected_streams

View file

@ -0,0 +1,71 @@
# Copyright 2017-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
import base64
from odoo import fields, models, tools
class ResCompany(models.Model):
_inherit = "res.company"
xml_format_in_pdf_invoice = fields.Selection(
selection_add=[("factur-x", "Factur-X (CII)")],
default="factur-x",
ondelete={"factur-x": "set null"},
)
facturx_level = fields.Selection(
[
("minimum", "Minimum"),
("basicwl", "Basic without lines"),
("basic", "Basic"),
("en16931", "EN 16931 (Comfort)"),
("extended", "Extended"),
],
string="Factur-X Level",
default="en16931",
help="Unless if you have a good reason, you should always "
"select 'EN 16931 (Comfort)', which is the default value.",
)
facturx_refund_type = fields.Selection(
[
("380", "Type 380 with negative amounts"),
("381", "Type 381 with positive amounts"),
],
string="Factur-X Refund Type",
default="381",
)
facturx_logo = fields.Binary(
compute="_compute_facturx_logo",
string="Factur-X Logo",
help="Logo to include in the visible part of Factur-X invoices",
)
# up to v15, this module inherited the invoice report to add the
# facturx logo. In v16, I decided to stop inheriting the invoice report
# because I think many users may not want to have the facturx logo,
# but I continue to provide the field 'facturx_logo'
def _compute_facturx_logo(self):
level2logo = {
"minimum": "factur-x-minimum.png",
"basicwl": "factur-x-basicwl.png",
"basic": "factur-x-basic.png",
"en16931": "factur-x-en16931.png",
"extended": "factur-x-extended.png",
}
for company in self:
facturx_logo = False
if (
company.xml_format_in_pdf_invoice == "factur-x"
and company.facturx_level
and company.facturx_level in level2logo
):
fname = level2logo[company.facturx_level]
fname_path = "account_invoice_facturx/static/logos/%s" % fname
f = tools.file_open(fname_path, "rb")
f_binary = f.read()
if f_binary:
facturx_logo = base64.b64encode(f_binary)
company.facturx_logo = facturx_logo

View file

@ -0,0 +1,5 @@
In the menu *Invoicing > Configuration > Settings*, check these options:
* *XML Format embedded in PDF invoice*: if you want to generate Factur-X invoices, this option must be set to *Factur-X (CII)*
* the *Factur-X Level*: unless you have a good reason, you should keep the default value *EN 16931 (Comfort)*
* *Factur-X Refund Type*: choose the type of the XML invoice for customer refunds (keep the default value if you are not familiar with this setting).

View file

@ -0,0 +1 @@
* Alexis de Lattre <alexis.delattre@akretion.com>

View file

@ -0,0 +1,5 @@
With this module, the PDF customer invoices and refunds generated by the Qweb reporting engine of Odoo will comply with the `Factur-X <http://fnfe-mpe.org/factur-x/>`__ standard. The Factur-X standard is an e-invoicing standard for France and Germany released on December 31st 2017. In Germany, it is also known as the `ZUGFeRD 2.0 <http://www.ferd-net.de/aktuelles/meldungen/verabschiedung-zugferd-2.0_profil-en16931.html/>`_ standard. This standard is based on `CII <http://tfig.unece.org/contents/cross-industry-invoice-cii.htm>`_ (Cross-Industry Invoice) for electronic invoicing. The great idea of the ZUGFeRD/Factur-X standard is to embed an XML file inside the PDF invoice to carry structured information about the invoice. So, with a ZUGFeRD/Factur-X PDF invoice:
* no need to change your habbits and those of your customers: you can still send your PDF invoices by email as usual.
* customers equiped with a modern accouting software will be able to import the invoice automatically as supplier invoice by taking advantage of the embedded XML file,
* customers with an ancient accounting software will just open the PDF file with their PDF reader and manually encode the document as supplier invoice in their accounting software.

View file

@ -0,0 +1,7 @@
**WARNING**: there is an alternative implementation of Factur-X in the module **account_edi_ubl_cii** of the official addons. If both modules are installed, the XML embedded in the PDF is the XML generated by the module **account_edi_ubl_cii**. To avoid that, you need to uninstall the module **account_edi_ubl_cii**.
This module requires a recent version of the Python library `factur-x <https://github.com/akretion/factur-x>`__ developped by Akretion. Note that the factur-x library depends on PyPDF2 for the low-level PDF manipulation. To install it, run:
.. code::
pip3 install --upgrade factur-x

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.2 KiB

View file

@ -0,0 +1,449 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils: https://docutils.sourceforge.io/" />
<title>Account Invoice Factur-X</title>
<style type="text/css">
/*
:Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 9511 2024-01-13 09:50:07Z milde $
:Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils.
Despite the name, some widely supported CSS2 features are used.
See https://docutils.sourceforge.io/docs/howto/html-stylesheets.html for how to
customize this style sheet.
*/
/* used to remove borders from tables and images */
.borderless, table.borderless td, table.borderless th {
border: 0 }
table.borderless td, table.borderless th {
/* Override padding for "table.docutils td" with "! important".
The right padding separates the table cells. */
padding: 0 0.5em 0 0 ! important }
.first {
/* Override more specific margin styles with "! important". */
margin-top: 0 ! important }
.last, .with-subtitle {
margin-bottom: 0 ! important }
.hidden {
display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref {
text-decoration: none ;
color: black }
blockquote.epigraph {
margin: 2em 5em ; }
dl.docutils dd {
margin-bottom: 0.5em }
object[type="image/svg+xml"], object[type="application/x-shockwave-flash"] {
overflow: hidden;
}
/* Uncomment (and remove this text!) to get bold-faced definition list terms
dl.docutils dt {
font-weight: bold }
*/
div.abstract {
margin: 2em 5em }
div.abstract p.topic-title {
font-weight: bold ;
text-align: center }
div.admonition, div.attention, div.caution, div.danger, div.error,
div.hint, div.important, div.note, div.tip, div.warning {
margin: 2em ;
border: medium outset ;
padding: 1em }
div.admonition p.admonition-title, div.hint p.admonition-title,
div.important p.admonition-title, div.note p.admonition-title,
div.tip p.admonition-title {
font-weight: bold ;
font-family: sans-serif }
div.attention p.admonition-title, div.caution p.admonition-title,
div.danger p.admonition-title, div.error p.admonition-title,
div.warning p.admonition-title, .code .error {
color: red ;
font-weight: bold ;
font-family: sans-serif }
/* Uncomment (and remove this text!) to get reduced vertical space in
compound paragraphs.
div.compound .compound-first, div.compound .compound-middle {
margin-bottom: 0.5em }
div.compound .compound-last, div.compound .compound-middle {
margin-top: 0.5em }
*/
div.dedication {
margin: 2em 5em ;
text-align: center ;
font-style: italic }
div.dedication p.topic-title {
font-weight: bold ;
font-style: normal }
div.figure {
margin-left: 2em ;
margin-right: 2em }
div.footer, div.header {
clear: both;
font-size: smaller }
div.line-block {
display: block ;
margin-top: 1em ;
margin-bottom: 1em }
div.line-block div.line-block {
margin-top: 0 ;
margin-bottom: 0 ;
margin-left: 1.5em }
div.sidebar {
margin: 0 0 0.5em 1em ;
border: medium outset ;
padding: 1em ;
background-color: #ffffee ;
width: 40% ;
float: right ;
clear: right }
div.sidebar p.rubric {
font-family: sans-serif ;
font-size: medium }
div.system-messages {
margin: 5em }
div.system-messages h1 {
color: red }
div.system-message {
border: medium outset ;
padding: 1em }
div.system-message p.system-message-title {
color: red ;
font-weight: bold }
div.topic {
margin: 2em }
h1.section-subtitle, h2.section-subtitle, h3.section-subtitle,
h4.section-subtitle, h5.section-subtitle, h6.section-subtitle {
margin-top: 0.4em }
h1.title {
text-align: center }
h2.subtitle {
text-align: center }
hr.docutils {
width: 75% }
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ;
float: left ;
margin-right: 1em }
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ;
float: right ;
margin-left: 1em }
img.align-center, .figure.align-center, object.align-center {
display: block;
margin-left: auto;
margin-right: auto;
}
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left {
text-align: left }
.align-center {
clear: both ;
text-align: center }
.align-right {
text-align: right }
/* reset inner alignment in figures */
div.align-right {
text-align: inherit }
/* div.align-center * { */
/* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple {
margin-bottom: 1em }
ol.arabic {
list-style: decimal }
ol.loweralpha {
list-style: lower-alpha }
ol.upperalpha {
list-style: upper-alpha }
ol.lowerroman {
list-style: lower-roman }
ol.upperroman {
list-style: upper-roman }
p.attribution {
text-align: right ;
margin-left: 50% }
p.caption {
font-style: italic }
p.credits {
font-style: italic ;
font-size: smaller }
p.label {
white-space: nowrap }
p.rubric {
font-weight: bold ;
font-size: larger ;
color: maroon ;
text-align: center }
p.sidebar-title {
font-family: sans-serif ;
font-weight: bold ;
font-size: larger }
p.sidebar-subtitle {
font-family: sans-serif ;
font-weight: bold }
p.topic-title {
font-weight: bold }
pre.address {
margin-bottom: 0 ;
margin-top: 0 ;
font: inherit }
pre.literal-block, pre.doctest-block, pre.math, pre.code {
margin-left: 2em ;
margin-right: 2em }
pre.code .ln { color: gray; } /* line numbers */
pre.code, code { background-color: #eeeeee }
pre.code .comment, code .comment { color: #5C6576 }
pre.code .keyword, code .keyword { color: #3B0D06; font-weight: bold }
pre.code .literal.string, code .literal.string { color: #0C5404 }
pre.code .name.builtin, code .name.builtin { color: #352B84 }
pre.code .deleted, code .deleted { background-color: #DEB0A1}
pre.code .inserted, code .inserted { background-color: #A3D289}
span.classifier {
font-family: sans-serif ;
font-style: oblique }
span.classifier-delimiter {
font-family: sans-serif ;
font-weight: bold }
span.interpreted {
font-family: sans-serif }
span.option {
white-space: nowrap }
span.pre {
white-space: pre }
span.problematic, pre.problematic {
color: red }
span.section-subtitle {
/* font-size relative to parent (h1..h6 element) */
font-size: 80% }
table.citation {
border-left: solid 1px gray;
margin-left: 1px }
table.docinfo {
margin: 2em 4em }
table.docutils {
margin-top: 0.5em ;
margin-bottom: 0.5em }
table.footnote {
border-left: solid 1px black;
margin-left: 1px }
table.docutils td, table.docutils th,
table.docinfo td, table.docinfo th {
padding-left: 0.5em ;
padding-right: 0.5em ;
vertical-align: top }
table.docutils th.field-name, table.docinfo th.docinfo-name {
font-weight: bold ;
text-align: left ;
white-space: nowrap ;
padding-left: 0 }
/* "booktabs" style (no vertical lines) */
table.docutils.booktabs {
border: 0px;
border-top: 2px solid;
border-bottom: 2px solid;
border-collapse: collapse;
}
table.docutils.booktabs * {
border: 0px;
}
table.docutils.booktabs th {
border-bottom: thin solid;
text-align: left;
}
h1 tt.docutils, h2 tt.docutils, h3 tt.docutils,
h4 tt.docutils, h5 tt.docutils, h6 tt.docutils {
font-size: 100% }
ul.auto-toc {
list-style-type: none }
</style>
</head>
<body>
<div class="document" id="account-invoice-factur-x">
<h1 class="title">Account Invoice Factur-X</h1>
<!-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:3668b0b6e968fc509056743e8ed14c23e904d1a614837772256e73fe0684a434
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/edi/tree/16.0/account_invoice_facturx"><img alt="OCA/edi" src="https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/edi-16-0/edi-16-0-account_invoice_facturx"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/edi&amp;target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>With this module, the PDF customer invoices and refunds generated by the Qweb reporting engine of Odoo will comply with the <a class="reference external" href="http://fnfe-mpe.org/factur-x/">Factur-X</a> standard. The Factur-X standard is an e-invoicing standard for France and Germany released on December 31st 2017. In Germany, it is also known as the <a class="reference external" href="http://www.ferd-net.de/aktuelles/meldungen/verabschiedung-zugferd-2.0_profil-en16931.html/">ZUGFeRD 2.0</a> standard. This standard is based on <a class="reference external" href="http://tfig.unece.org/contents/cross-industry-invoice-cii.htm">CII</a> (Cross-Industry Invoice) for electronic invoicing. The great idea of the ZUGFeRD/Factur-X standard is to embed an XML file inside the PDF invoice to carry structured information about the invoice. So, with a ZUGFeRD/Factur-X PDF invoice:</p>
<ul class="simple">
<li>no need to change your habbits and those of your customers: you can still send your PDF invoices by email as usual.</li>
<li>customers equiped with a modern accouting software will be able to import the invoice automatically as supplier invoice by taking advantage of the embedded XML file,</li>
<li>customers with an ancient accounting software will just open the PDF file with their PDF reader and manually encode the document as supplier invoice in their accounting software.</li>
</ul>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
<ul class="simple">
<li><a class="reference internal" href="#installation" id="toc-entry-1">Installation</a></li>
<li><a class="reference internal" href="#configuration" id="toc-entry-2">Configuration</a></li>
<li><a class="reference internal" href="#bug-tracker" id="toc-entry-3">Bug Tracker</a></li>
<li><a class="reference internal" href="#credits" id="toc-entry-4">Credits</a><ul>
<li><a class="reference internal" href="#authors" id="toc-entry-5">Authors</a></li>
<li><a class="reference internal" href="#contributors" id="toc-entry-6">Contributors</a></li>
<li><a class="reference internal" href="#maintainers" id="toc-entry-7">Maintainers</a></li>
</ul>
</li>
</ul>
</div>
<div class="section" id="installation">
<h1><a class="toc-backref" href="#toc-entry-1">Installation</a></h1>
<p><strong>WARNING</strong>: there is an alternative implementation of Factur-X in the module <strong>account_edi_ubl_cii</strong> of the official addons. If both modules are installed, the XML embedded in the PDF is the XML generated by the module <strong>account_edi_ubl_cii</strong>. To avoid that, you need to uninstall the module <strong>account_edi_ubl_cii</strong>.</p>
<p>This module requires a recent version of the Python library <a class="reference external" href="https://github.com/akretion/factur-x">factur-x</a> developped by Akretion. Note that the factur-x library depends on PyPDF2 for the low-level PDF manipulation. To install it, run:</p>
<pre class="code literal-block">
pip3 install --upgrade factur-x
</pre>
</div>
<div class="section" id="configuration">
<h1><a class="toc-backref" href="#toc-entry-2">Configuration</a></h1>
<p>In the menu <em>Invoicing &gt; Configuration &gt; Settings</em>, check these options:</p>
<ul class="simple">
<li><em>XML Format embedded in PDF invoice</em>: if you want to generate Factur-X invoices, this option must be set to <em>Factur-X (CII)</em></li>
<li>the <em>Factur-X Level</em>: unless you have a good reason, you should keep the default value <em>EN 16931 (Comfort)</em></li>
<li><em>Factur-X Refund Type</em>: choose the type of the XML invoice for customer refunds (keep the default value if you are not familiar with this setting).</li>
</ul>
</div>
<div class="section" id="bug-tracker">
<h1><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h1>
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/edi/issues">GitHub Issues</a>.
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
<a class="reference external" href="https://github.com/OCA/edi/issues/new?body=module:%20account_invoice_facturx%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
<p>Do not contact contributors directly about support or help with technical issues.</p>
</div>
<div class="section" id="credits">
<h1><a class="toc-backref" href="#toc-entry-4">Credits</a></h1>
<div class="section" id="authors">
<h2><a class="toc-backref" href="#toc-entry-5">Authors</a></h2>
<ul class="simple">
<li>Akretion</li>
</ul>
</div>
<div class="section" id="contributors">
<h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
<ul class="simple">
<li>Alexis de Lattre &lt;<a class="reference external" href="mailto:alexis.delattre&#64;akretion.com">alexis.delattre&#64;akretion.com</a>&gt;</li>
</ul>
</div>
<div class="section" id="maintainers">
<h2><a class="toc-backref" href="#toc-entry-7">Maintainers</a></h2>
<p>This module is maintained by the OCA.</p>
<a class="reference external image-reference" href="https://odoo-community.org">
<img alt="Odoo Community Association" src="https://odoo-community.org/logo.png" />
</a>
<p>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.</p>
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
<p><a class="reference external image-reference" href="https://github.com/alexis-via"><img alt="alexis-via" src="https://github.com/alexis-via.png?size=40px" /></a></p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi/tree/16.0/account_invoice_facturx">OCA/edi</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
</div>
</body>
</html>

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.8 KiB

View file

@ -0,0 +1 @@
from . import test_facturx_invoice

View file

@ -0,0 +1,97 @@
# Copyright 2015-2020 Akretion France
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
import logging
from facturx import get_facturx_level
from lxml import etree
from odoo.tests.common import TransactionCase
logger = logging.getLogger(__name__)
class TestFacturXInvoice(TransactionCase):
def setUp(self):
super().setUp()
self.company = self.env.ref("base.main_company")
self.product1 = self.env.ref("product.product_product_4")
self.product2 = self.env.ref("product.product_product_1")
sale_taxes = self.env["account.tax"].search(
[
("company_id", "=", self.company.id),
("type_tax_use", "=", "sale"),
"|",
("unece_type_id", "=", False),
("unece_categ_id", "=", False),
]
)
sale_taxes.write(
{
"unece_type_id": self.env.ref("account_tax_unece.tax_type_vat").id,
"unece_categ_id": self.env.ref("account_tax_unece.tax_categ_s").id,
}
)
self.invoice = self.env["account.move"].create(
{
"company_id": self.company.id,
"move_type": "out_invoice",
"partner_id": self.env.ref("base.res_partner_2").id,
"currency_id": self.company.currency_id.id,
"invoice_line_ids": [
(
0,
0,
{
"product_id": self.product1.id,
"product_uom_id": self.product1.uom_id.id,
"quantity": 12,
"price_unit": 42.42,
},
),
(
0,
0,
{
"product_id": self.product2.id,
"product_uom_id": self.product2.uom_id.id,
"quantity": 2,
"price_unit": 12.34,
},
),
],
}
)
self.invoice.action_post()
def test_deep_customer_invoice(self):
# Bug in Basic XSD: missing CountrySubDivisionName
# I reported it to FNFE-MPE on 24/10/2021
# In the meantime, we want to avoid the bug:
self.company.partner_id.state_id = False
self.invoice.partner_id.state_id = False
if self.company.xml_format_in_pdf_invoice != "factur-x":
self.company.write({"xml_format_in_pdf_invoice": "factur-x"})
# inv_report = self.env.ref("account.account_invoices").with_context(
# force_report_rendering=True
# )
for level in ["minimum", "basicwl", "basic", "en16931", "extended"]:
self.company.write({"facturx_level": level})
# Travis tests get stalled on this line
# Maybe it's not possible to render a PDF on Travis... I don't know
# pdf_content, pdf_ext = inv_report._render_qweb_pdf(
# res_ids=[self.invoice.id]
# )
# xml_filename, xml_string = get_facturx_xml_from_pdf(
# pdf_content, check_xsd=True
# )
# self.assertTrue(xml_filename, "factur-x.xml")
# xml_root = etree.fromstring(xml_string)
# facturx_level = get_facturx_level(xml_root)
# self.assertEqual(facturx_level, level)
xml_bytes, fx_level = self.invoice.generate_facturx_xml()
self.assertEqual(fx_level, level)
xml_root = etree.fromstring(xml_bytes)
facturx_level = get_facturx_level(xml_root)
self.assertEqual(facturx_level, level)

View file

@ -0,0 +1,24 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2024 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_move_form" model="ir.ui.view">
<field name="model">account.move</field>
<field name="inherit_id" ref="account.view_move_form" />
<field name="arch" type="xml">
<xpath
expr="//page[@id='invoice_tab']/field[@name='invoice_line_ids']/tree/field[@name='name']"
position="attributes"
>
<attribute name="required">1</attribute>
</xpath>
</field>
</record>
</odoo>

View file

@ -0,0 +1,51 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2017-2022 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<record id="view_account_config_settings" model="ir.ui.view">
<field name="name">account_invoice_facturx.res.config.settings</field>
<field name="model">res.config.settings</field>
<field
name="inherit_id"
ref="account_einvoice_generate.view_account_config_settings"
/>
<field name="arch" type="xml">
<div id="e-invoices" position="after">
<div class="col-xs-12 col-md-6 o_setting_box" id="facturx">
<div class="o_setting_left_pane" />
<div class="o_setting_right_pane">
<div
class="content-group"
name="facturx_level"
attrs="{'invisible': [('xml_format_in_pdf_invoice', '!=', 'factur-x')]}"
>
<div class="row mt16">
<label for="facturx_level" class="col-md-5" />
<field
name="facturx_level"
attrs="{'required': [('xml_format_in_pdf_invoice', '=', 'factur-x')]}"
/>
</div>
</div>
<div
class="content-group"
name="facturx_refund_type"
attrs="{'invisible': [('xml_format_in_pdf_invoice', '!=', 'factur-x')]}"
>
<div class="row mt16">
<label for="facturx_refund_type" class="col-md-5" />
<field
name="facturx_refund_type"
attrs="{'required': [('xml_format_in_pdf_invoice', '=', 'factur-x')]}"
/>
</div>
</div>
</div>
</div>
</div>
</field>
</record>
</odoo>

View file

@ -0,0 +1,32 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2017-2022 Akretion France (http://www.akretion.com/)
@author: Alexis de Lattre <alexis.delattre@akretion.com>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo>
<!-- The factur-X standard says that country is a required XML tag for
buyer and seller. So, to avoid getting error messages upon invoice generation
for missing country, it's better to put the field as required in the view
(I don't put it as required on the field definition, because it may
block other modules or data) -->
<record id="view_partner_form" model="ir.ui.view">
<field name="name">factur-x.country.required.on.res.partner</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_partner_form" />
<field name="arch" type="xml">
<xpath
expr="//div[hasclass('o_address_format')]/field[@name='country_id']"
position="attributes"
>
<attribute name="required">1</attribute>
</xpath>
<xpath
expr="//field[@name='child_ids']/form//field[@name='country_id']"
position="attributes"
>
<attribute name="required">1</attribute>
</xpath>
</field>
</record>
</odoo>

View file

@ -0,0 +1 @@
from . import res_config_settings

View file

@ -0,0 +1,14 @@
# Copyright 2017-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
facturx_level = fields.Selection(related="company_id.facturx_level", readonly=False)
facturx_refund_type = fields.Selection(
related="company_id.facturx_refund_type", readonly=False
)

View file

@ -0,0 +1,32 @@
# Architecture
```mermaid
flowchart TD
U[Users] -->|HTTP| V[Views and QWeb Templates]
V --> C[Controllers]
V --> W[Wizards Transient Models]
C --> M[Models and ORM]
W --> M
M --> R[Reports]
DX[Data XML] --> M
S[Security ACLs and Groups] -. enforces .-> M
subgraph Account_invoice_facturx Module - account_invoice_facturx
direction LR
M:::layer
W:::layer
C:::layer
V:::layer
R:::layer
S:::layer
DX:::layer
end
classDef layer fill:#eef8ff,stroke:#6ea8fe,stroke-width:1px
```
Notes
- Views include tree/form/kanban templates and report templates.
- Controllers provide website/portal routes when present.
- Wizards are UI flows implemented with `models.TransientModel`.
- Data XML loads data/demo records; Security defines groups and access.

View file

@ -0,0 +1,3 @@
# Configuration
Refer to Odoo settings for account_invoice_facturx. Configure related models, access rights, and options as needed.

View file

@ -0,0 +1,3 @@
# Controllers
This module does not define custom HTTP controllers.

View file

@ -0,0 +1,8 @@
# Dependencies
This addon depends on:
- [account_einvoice_generate](../../odoo-bringout-oca-edi-framework-account_einvoice_generate)
- account_payment_partner
- [base_facturx](../../odoo-bringout-oca-edi-base_facturx)
- [base_vat](../../odoo-bringout-oca-ocb-base_vat)

View file

@ -0,0 +1,4 @@
# FAQ
- Q: Which Odoo version? A: 16.0 (OCA/OCB packaged).
- Q: How to enable? A: Start server with --addon account_invoice_facturx or install in UI.

View file

@ -0,0 +1,7 @@
# Install
```bash
pip install odoo-bringout-oca-edi-framework-account_invoice_facturx"
# or
uv pip install odoo-bringout-oca-edi-framework-account_invoice_facturx"
```

View file

@ -0,0 +1,14 @@
# Models
Detected core models and extensions in account_invoice_facturx.
```mermaid
classDiagram
class account_move
class ir_actions_report
class res_company
```
Notes
- Classes show model technical names; fields omitted for brevity.
- Items listed under _inherit are extensions of existing models.

View file

@ -0,0 +1,6 @@
# Overview
Packaged Odoo addon: account_invoice_facturx. Provides features documented in upstream Odoo 16 under this addon.
- Source: OCA/OCB 16.0, addon account_invoice_facturx
- License: LGPL-3

View file

@ -0,0 +1,3 @@
# Reports
This module does not define custom reports.

View file

@ -0,0 +1,8 @@
# Security
This module does not define custom security rules or access controls beyond Odoo defaults.
Default Odoo security applies:
- Base user access through standard groups
- Model access inherited from dependencies
- No custom row-level security rules

View file

@ -0,0 +1,5 @@
# Troubleshooting
- Ensure Python and Odoo environment matches repo guidance.
- Check database connectivity and logs if startup fails.
- Validate that dependent addons listed in DEPENDENCIES.md are installed.

View file

@ -0,0 +1,7 @@
# Usage
Start Odoo including this addon (from repo root):
```bash
python3 scripts/nix_odoo_web_server.py --db-name mydb --addon account_invoice_facturx
```

View file

@ -0,0 +1,3 @@
# Wizards
This module does not include UI wizards.

View file

@ -0,0 +1,45 @@
[project]
name = "odoo-bringout-oca-edi-framework-account_invoice_facturx"
version = "16.0.0"
description = "Account Invoice Factur-X - Generate Factur-X/ZUGFeRD customer invoices"
authors = [
{ name = "Ernad Husremovic", email = "hernad@bring.out.ba" }
]
dependencies = [
"odoo-bringout-oca-edi-framework-account_einvoice_generate>=16.0.0",
"odoo-bringout-oca-edi-framework-account_payment_partner>=16.0.0",
"odoo-bringout-oca-edi-framework-base_facturx>=16.0.0",
"odoo-bringout-oca-edi-framework-base_vat>=16.0.0",
"requests>=2.25.1"
]
readme = "README.md"
requires-python = ">= 3.11"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Office/Business",
]
[project.urls]
homepage = "https://github.com/bringout/0"
repository = "https://github.com/bringout/0"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.metadata]
allow-direct-references = true
[tool.hatch.build.targets.wheel]
packages = ["account_invoice_facturx"]
[tool.rye]
managed = true
dev-dependencies = [
"pytest>=8.4.1",
]