=============
Base Factur-X
=============

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

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

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

This is the base module for the implementation of the `Factur-X <http://fnfe-mpe.org/factur-x/>`_ and `ZUGFeRD <https://www.ferd-net.de/zugferd/zugferd-abruf-1.0.html>`_ standards. The standard Factur-X 1.0 is the same as ZUGFeRD 2.0 (the name Factur-X is always used in France, whereas in Germany many people still use the name ZUGFeRD). It is a standard based on `CII <http://tfig.unece.org/contents/cross-industry-invoice-cii.htm>`_ (Cross-Industry Invoice) for electronic invoicing. The great idea of the Factur-X/ZUGFeRD standard is to embed an XML file inside the PDF invoice to carry structured information about the invoice.

**Table of contents**

.. contents::
   :local:

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

To configure this module, you need to:

* go to the menu *Sales > Configuration > Products > Units of Measures* and check the *UNECE Code* for the units of measures.
* go to the menu *Invoicing > Configuration > Accounting > Taxes* and, for each tax, set a *UNECE Type Code* and a *UNECE Category Code*.
* go to the menu *Invoicing > Configuration > Management > Payment Methods* and assign a *UNECE Code* to the payment methods that are selected in the payment modes.

To avoid the manual configuration of taxes, look for a module *l10n_XX_account_tax_unece* in the OCA project of your localization; if such a module exists (it exists at least for the Netherlands and France), install it and it will auto-configure the taxes created by your localization.

Usage
=====

This module doesn't do anything by itself, but it is used by 2 other modules:

* *account_invoice_facturx* that generate Factur-X 1.0 (i.e. ZUGFeRD 2.0) customer invoices/refunds,
* *account_invoice_import_facturx* that imports ZUGFeRD 1.0 and Factur-X 1.0 (i.e. ZUGFeRD 2.0) supplier invoices/refunds.

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:%20base_facturx%0Aversion:%2012.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.

This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/12.0/base_facturx>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
