Skip to content

Commit

Permalink
Merge PR #408 into 16.0
Browse files Browse the repository at this point in the history
Signed-off-by alexis-via
  • Loading branch information
OCA-git-bot committed Jun 27, 2023
2 parents 853d15d + a05e41c commit 918aca1
Show file tree
Hide file tree
Showing 103 changed files with 27,545 additions and 0 deletions.
85 changes: 85 additions & 0 deletions l10n_fr_account_invoice_facturx/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
============================
Factur-X Invoices for France
============================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fl10n--france-lightgray.png?logo=github
:target: https://github.com/OCA/l10n-france/tree/15.0/l10n_fr_account_invoice_facturx
:alt: OCA/l10n-france
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/l10n-france-15-0/l10n-france-15-0-l10n_fr_account_invoice_facturx
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/121/15.0
:alt: Try me on Runbot

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

This module implements the France-specific part of the Factur-X standard to generate Factur-X invoices. In particular, it adds the SIRET of the buyer and the seller in the XML file embedded in the PDF invoice.

Factur-X is the e-invoicing standard for France and Germany. The Factur-X specifications are available on the website of `FNFE-MPE <http://fnfe-mpe.org/factur-x/>`_.

This module will be installed automatically when the modules *account_invoice_facturx* and *l10n_fr_siret* are installed.

**Table of contents**

.. contents::
:local:

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/l10n-france/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-france/issues/new?body=module:%20l10n_fr_account_invoice_facturx%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Akretion

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

* Alexis de Lattre <[email protected]>

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/l10n-france <https://github.com/OCA/l10n-france/tree/15.0/l10n_fr_account_invoice_facturx>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
1 change: 1 addition & 0 deletions l10n_fr_account_invoice_facturx/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
20 changes: 20 additions & 0 deletions l10n_fr_account_invoice_facturx/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright 2017-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Factur-X Invoices for France",
"version": "16.0.1.0.0",
"category": "Localisation",
"license": "AGPL-3",
"summary": "France-specific module to generate Factur-X invoices",
"author": "Akretion,Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"website": "https://github.com/OCA/l10n-france",
"depends": [
"account_invoice_facturx",
"l10n_fr_siret",
],
"auto_install": True,
"installable": True,
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_fr_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: l10n_fr_account_invoice_factur-x
#: model:ir.model,name:l10n_fr_account_invoice_factur-x.model_account_invoice
msgid "Invoice"
msgstr ""

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_fr_account_invoice_facturx
#
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 15.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: l10n_fr_account_invoice_facturx
#: model:ir.model,name:l10n_fr_account_invoice_facturx.model_account_move
msgid "Journal Entry"
msgstr ""
1 change: 1 addition & 0 deletions l10n_fr_account_invoice_facturx/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import account_move
17 changes: 17 additions & 0 deletions l10n_fr_account_invoice_facturx/models/account_move.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2017-2022 Akretion France (http://www.akretion.com/)
# @author: Alexis de Lattre <[email protected]>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from odoo import api, models


class AccountMove(models.Model):
_inherit = "account.move"

@api.model
def _cii_get_party_identification(self, commercial_partner):
res = super()._cii_get_party_identification(commercial_partner)
# partner.siret has a value even if partner.nic == False
if commercial_partner.siren and commercial_partner.nic:
res["0002"] = commercial_partner.siret
return res
1 change: 1 addition & 0 deletions l10n_fr_account_invoice_facturx/readme/CONTRIBUTORS.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* Alexis de Lattre <[email protected]>
5 changes: 5 additions & 0 deletions l10n_fr_account_invoice_facturx/readme/DESCRIPTION.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
This module implements the France-specific part of the Factur-X standard to generate Factur-X invoices. In particular, it adds the SIRET of the buyer and the seller in the XML file embedded in the PDF invoice.

Factur-X is the e-invoicing standard for France and Germany. The Factur-X specifications are available on the website of `FNFE-MPE <http://fnfe-mpe.org/factur-x/>`_.

This module will be installed automatically when the modules *account_invoice_facturx* and *l10n_fr_siret* are installed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 918aca1

Please sign in to comment.