From c00e8eb68b5b9137c27ae6794d879f6f779a467d Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Wed, 15 Nov 2023 21:40:31 +0100 Subject: [PATCH 1/3] Add module l10n_fr_account_banking_pain_base --- l10n_fr_account_banking_pain_base/README.rst | 86 ++++ l10n_fr_account_banking_pain_base/__init__.py | 0 .../__manifest__.py | 20 + .../account_pain_regulatory_reporting.xml | 115 +++++ .../readme/CONTRIBUTORS.rst | 1 + .../readme/DESCRIPTION.rst | 3 + .../static/description/index.html | 424 ++++++++++++++++++ 7 files changed, 649 insertions(+) create mode 100644 l10n_fr_account_banking_pain_base/README.rst create mode 100644 l10n_fr_account_banking_pain_base/__init__.py create mode 100644 l10n_fr_account_banking_pain_base/__manifest__.py create mode 100644 l10n_fr_account_banking_pain_base/data/account_pain_regulatory_reporting.xml create mode 100644 l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.rst create mode 100644 l10n_fr_account_banking_pain_base/readme/DESCRIPTION.rst create mode 100644 l10n_fr_account_banking_pain_base/static/description/index.html diff --git a/l10n_fr_account_banking_pain_base/README.rst b/l10n_fr_account_banking_pain_base/README.rst new file mode 100644 index 000000000..d9b92d2b1 --- /dev/null +++ b/l10n_fr_account_banking_pain_base/README.rst @@ -0,0 +1,86 @@ +===================== +France ISO 20022/PAIN +===================== + +.. + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! source digest: sha256:53ee27cabda20128bbb2dfc9f84b76778ff753844e6720b035dd77b18ce44385 + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/16.0/l10n_fr_account_banking_pain_base + :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-16-0/l10n-france-16-0-l10n_fr_account_banking_pain_base + :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/l10n-france&target_branch=16.0 + :alt: Try me on Runboat + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This module adds the regulatory reporting codes used in France for the generation of ISO 20022/PAIN credit transfer and direct debit files. These codes are defined in the `technical note DGS n°16-02 `_ of the `Banque de France `_. + +These regulatory codes are required for non-SEPA credit transfers with an amount over 50 000 € (or equivalent amount in another currency). + +**Table of contents** + +.. contents:: + :local: + +Bug Tracker +=========== + +Bugs are tracked on `GitHub 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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Akretion + +Contributors +~~~~~~~~~~~~ + +* Alexis de Lattre + +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 `__: + +|maintainer-alexis-via| + +This module is part of the `OCA/l10n-france `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_fr_account_banking_pain_base/__init__.py b/l10n_fr_account_banking_pain_base/__init__.py new file mode 100644 index 000000000..e69de29bb diff --git a/l10n_fr_account_banking_pain_base/__manifest__.py b/l10n_fr_account_banking_pain_base/__manifest__.py new file mode 100644 index 000000000..bd49ee9ce --- /dev/null +++ b/l10n_fr_account_banking_pain_base/__manifest__.py @@ -0,0 +1,20 @@ +# Copyright 2023 Akretion France (http://www.akretion.com/) +# @author: Alexis de Lattre +# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). + +{ + "name": "France ISO 20022/PAIN", + "version": "16.0.1.0.0", + "category": "Accounting", + "license": "AGPL-3", + "summary": "Regulatory reporting codes for ISO 20022/PAIN files", + "author": "Akretion,Odoo Community Association (OCA)", + "maintainers": ["alexis-via"], + "website": "https://github.com/OCA/l10n-france", + "depends": ["l10n_fr", "account_banking_pain_base"], + "data": [ + "data/account_pain_regulatory_reporting.xml", + ], + "installable": True, + "auto_install": True, +} diff --git a/l10n_fr_account_banking_pain_base/data/account_pain_regulatory_reporting.xml b/l10n_fr_account_banking_pain_base/data/account_pain_regulatory_reporting.xml new file mode 100644 index 000000000..ea06f9345 --- /dev/null +++ b/l10n_fr_account_banking_pain_base/data/account_pain_regulatory_reporting.xml @@ -0,0 +1,115 @@ + + + + + + E01 + Biens (marchandises générales, avitaillement, travail à façon et négoce) + + + + + E02 + Services de transport (maritimes, aériens et autres) + + + + + E03 + Services informatiques et de communication + + + + + E04 + Services de construction + + + + + E05 + Redevances et droits de licence, acquisition / cession et utilisation de droits d’exploiter des ressources, de droits de franchise et d’autres droits de propriété + + + + + E06 + Services liés au tourisme + + + + + E07 + Autres services (y compris services aux entreprises et aux professionnels) + + + + + E08 + Revenus d’investissement (y compris dividendes et intérêts) + + + + + E09 + Transferts courants (y compris l’envoi de fonds, salaires et rémunérations, pensions) + + + + + E10 + Investissements intra-groupes (participations, prêts, dépôts et règlements intervenant dans le cadre de procédures de netting) + + + + + E11 + Désinvestissements intra-groupes (participations, prêts, dépôts et règlements intervenant dans le cadre de procédures de netting) + + + + + E12 + Opérations sur actifs immobiliers + + + + + E13 + Titres de dettes et actions (valeurs mobilières de placement et titres immobilisés) à l’exclusion des participations + + + + + E14 + Instruments financiers dérivés + + + + + E15 + Prêts et emprunts hors-groupe + + + + diff --git a/l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.rst b/l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..ff65d68ce --- /dev/null +++ b/l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.rst @@ -0,0 +1 @@ +* Alexis de Lattre diff --git a/l10n_fr_account_banking_pain_base/readme/DESCRIPTION.rst b/l10n_fr_account_banking_pain_base/readme/DESCRIPTION.rst new file mode 100644 index 000000000..de9e2d128 --- /dev/null +++ b/l10n_fr_account_banking_pain_base/readme/DESCRIPTION.rst @@ -0,0 +1,3 @@ +This module adds the regulatory reporting codes used in France for the generation of ISO 20022/PAIN credit transfer and direct debit files. These codes are defined in the `technical note DGS n°16-02 `_ of the `Banque de France `_. + +These regulatory codes are required for non-SEPA credit transfers with an amount over 50 000 € (or equivalent amount in another currency). diff --git a/l10n_fr_account_banking_pain_base/static/description/index.html b/l10n_fr_account_banking_pain_base/static/description/index.html new file mode 100644 index 000000000..54166be25 --- /dev/null +++ b/l10n_fr_account_banking_pain_base/static/description/index.html @@ -0,0 +1,424 @@ + + + + + + +France ISO 20022/PAIN + + + +
+

France ISO 20022/PAIN

+ + +

Beta License: AGPL-3 OCA/l10n-france Translate me on Weblate Try me on Runboat

+

This module adds the regulatory reporting codes used in France for the generation of ISO 20022/PAIN credit transfer and direct debit files. These codes are defined in the technical note DGS n°16-02 of the Banque de France.

+

These regulatory codes are required for non-SEPA credit transfers with an amount over 50 000 € (or equivalent amount in another currency).

+

Table of contents

+ +
+

Bug Tracker

+

Bugs are tracked on GitHub 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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Akretion
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

alexis-via

+

This module is part of the OCA/l10n-france project on GitHub.

+

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

+
+
+
+ + From fa012975b6afa0dbad2b3786dbd368880539b967 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 27 Jan 2025 15:05:10 +0100 Subject: [PATCH 2/3] [IMP] l10n_fr_account_banking_pain_base: pre-commit auto fixes --- l10n_fr_account_banking_pain_base/README.rst | 27 +-- .../account_pain_regulatory_reporting.xml | 172 +++++++++--------- .../pyproject.toml | 3 + .../readme/CONTRIBUTORS.md | 1 + .../readme/CONTRIBUTORS.rst | 1 - .../readme/DESCRIPTION.md | 8 + .../readme/DESCRIPTION.rst | 3 - .../static/description/index.html | 27 ++- 8 files changed, 130 insertions(+), 112 deletions(-) create mode 100644 l10n_fr_account_banking_pain_base/pyproject.toml create mode 100644 l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.md delete mode 100644 l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.rst create mode 100644 l10n_fr_account_banking_pain_base/readme/DESCRIPTION.md delete mode 100644 l10n_fr_account_banking_pain_base/readme/DESCRIPTION.rst diff --git a/l10n_fr_account_banking_pain_base/README.rst b/l10n_fr_account_banking_pain_base/README.rst index d9b92d2b1..07c9a5070 100644 --- a/l10n_fr_account_banking_pain_base/README.rst +++ b/l10n_fr_account_banking_pain_base/README.rst @@ -17,20 +17,25 @@ France ISO 20022/PAIN :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/16.0/l10n_fr_account_banking_pain_base + :target: https://github.com/OCA/l10n-france/tree/18.0/l10n_fr_account_banking_pain_base :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-16-0/l10n-france-16-0-l10n_fr_account_banking_pain_base + :target: https://translation.odoo-community.org/projects/l10n-france-18-0/l10n-france-18-0-l10n_fr_account_banking_pain_base :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/l10n-france&target_branch=16.0 + :target: https://runboat.odoo-community.org/builds?repo=OCA/l10n-france&target_branch=18.0 :alt: Try me on Runboat |badge1| |badge2| |badge3| |badge4| |badge5| -This module adds the regulatory reporting codes used in France for the generation of ISO 20022/PAIN credit transfer and direct debit files. These codes are defined in the `technical note DGS n°16-02 `_ of the `Banque de France `_. +This module adds the regulatory reporting codes used in France for the +generation of ISO 20022/PAIN credit transfer and direct debit files. +These codes are defined in the `technical note DGS +n°16-02 `__ +of the `Banque de France `__. -These regulatory codes are required for non-SEPA credit transfers with an amount over 50 000 € (or equivalent amount in another currency). +These regulatory codes are required for non-SEPA credit transfers with +an amount over 50 000 € (or equivalent amount in another currency). **Table of contents** @@ -43,7 +48,7 @@ Bug Tracker Bugs are tracked on `GitHub 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 `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -51,17 +56,17 @@ Credits ======= Authors -~~~~~~~ +------- * Akretion Contributors -~~~~~~~~~~~~ +------------ -* Alexis de Lattre +- Alexis de Lattre Maintainers -~~~~~~~~~~~ +----------- This module is maintained by the OCA. @@ -81,6 +86,6 @@ Current `maintainer `__: |maintainer-alexis-via| -This module is part of the `OCA/l10n-france `_ project on GitHub. +This module is part of the `OCA/l10n-france `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/l10n_fr_account_banking_pain_base/data/account_pain_regulatory_reporting.xml b/l10n_fr_account_banking_pain_base/data/account_pain_regulatory_reporting.xml index ea06f9345..111a0a207 100644 --- a/l10n_fr_account_banking_pain_base/data/account_pain_regulatory_reporting.xml +++ b/l10n_fr_account_banking_pain_base/data/account_pain_regulatory_reporting.xml @@ -5,111 +5,109 @@ section 3.2 --> - - - E01 - + E01 + Biens (marchandises générales, avitaillement, travail à façon et négoce) - - - - - E02 - Services de transport (maritimes, aériens et autres) - - - - - E03 - Services informatiques et de communication - - - - - E04 - Services de construction - - - - - E05 - + + + + E02 + Services de transport (maritimes, aériens et autres) + + + + + E03 + Services informatiques et de communication + + + + + E04 + Services de construction + + + + + E05 + Redevances et droits de licence, acquisition / cession et utilisation de droits d’exploiter des ressources, de droits de franchise et d’autres droits de propriété - - - - - E06 - Services liés au tourisme - - - - - E07 - + + + + E06 + Services liés au tourisme + + + + + E07 + Autres services (y compris services aux entreprises et aux professionnels) - - + + - - E08 - + E08 + Revenus d’investissement (y compris dividendes et intérêts) - - + + - - E09 - + E09 + Transferts courants (y compris l’envoi de fonds, salaires et rémunérations, pensions) - - + + - - E10 - + E10 + Investissements intra-groupes (participations, prêts, dépôts et règlements intervenant dans le cadre de procédures de netting) - - + + - - E11 - + E11 + Désinvestissements intra-groupes (participations, prêts, dépôts et règlements intervenant dans le cadre de procédures de netting) - - - - - E12 - Opérations sur actifs immobiliers - - - - - E13 - + + + + E12 + Opérations sur actifs immobiliers + + + + + E13 + Titres de dettes et actions (valeurs mobilières de placement et titres immobilisés) à l’exclusion des participations - - - - - E14 - Instruments financiers dérivés - - - - - E15 - Prêts et emprunts hors-groupe - - - + + + + + E14 + Instruments financiers dérivés + + + + + E15 + Prêts et emprunts hors-groupe + + diff --git a/l10n_fr_account_banking_pain_base/pyproject.toml b/l10n_fr_account_banking_pain_base/pyproject.toml new file mode 100644 index 000000000..4231d0ccc --- /dev/null +++ b/l10n_fr_account_banking_pain_base/pyproject.toml @@ -0,0 +1,3 @@ +[build-system] +requires = ["whool"] +build-backend = "whool.buildapi" diff --git a/l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.md b/l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.md new file mode 100644 index 000000000..b61afe5d0 --- /dev/null +++ b/l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.md @@ -0,0 +1 @@ +- Alexis de Lattre \<\> diff --git a/l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.rst b/l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.rst deleted file mode 100644 index ff65d68ce..000000000 --- a/l10n_fr_account_banking_pain_base/readme/CONTRIBUTORS.rst +++ /dev/null @@ -1 +0,0 @@ -* Alexis de Lattre diff --git a/l10n_fr_account_banking_pain_base/readme/DESCRIPTION.md b/l10n_fr_account_banking_pain_base/readme/DESCRIPTION.md new file mode 100644 index 000000000..248889d28 --- /dev/null +++ b/l10n_fr_account_banking_pain_base/readme/DESCRIPTION.md @@ -0,0 +1,8 @@ +This module adds the regulatory reporting codes used in France for the +generation of ISO 20022/PAIN credit transfer and direct debit files. +These codes are defined in the [technical note DGS +n°16-02](https://www.banque-france.fr/system/files/2023-08/banque_de_france_espace_declarants_note_technique_dgs_ndeg_16-02_v1.1.pdf) +of the [Banque de France](https://www.banque-france.fr/). + +These regulatory codes are required for non-SEPA credit transfers with +an amount over 50 000 € (or equivalent amount in another currency). diff --git a/l10n_fr_account_banking_pain_base/readme/DESCRIPTION.rst b/l10n_fr_account_banking_pain_base/readme/DESCRIPTION.rst deleted file mode 100644 index de9e2d128..000000000 --- a/l10n_fr_account_banking_pain_base/readme/DESCRIPTION.rst +++ /dev/null @@ -1,3 +0,0 @@ -This module adds the regulatory reporting codes used in France for the generation of ISO 20022/PAIN credit transfer and direct debit files. These codes are defined in the `technical note DGS n°16-02 `_ of the `Banque de France `_. - -These regulatory codes are required for non-SEPA credit transfers with an amount over 50 000 € (or equivalent amount in another currency). diff --git a/l10n_fr_account_banking_pain_base/static/description/index.html b/l10n_fr_account_banking_pain_base/static/description/index.html index 54166be25..61bcc4c7e 100644 --- a/l10n_fr_account_banking_pain_base/static/description/index.html +++ b/l10n_fr_account_banking_pain_base/static/description/index.html @@ -1,4 +1,3 @@ - @@ -9,10 +8,11 @@ /* :Author: David Goodger (goodger@python.org) -:Id: $Id: html4css1.css 8954 2022-01-20 10:10:25Z milde $ +: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. @@ -275,7 +275,7 @@ margin-left: 2em ; margin-right: 2em } -pre.code .ln { color: grey; } /* line numbers */ +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 } @@ -301,7 +301,7 @@ span.pre { white-space: pre } -span.problematic { +span.problematic, pre.problematic { color: red } span.section-subtitle { @@ -369,9 +369,14 @@

France ISO 20022/PAIN

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:53ee27cabda20128bbb2dfc9f84b76778ff753844e6720b035dd77b18ce44385 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/l10n-france Translate me on Weblate Try me on Runboat

-

This module adds the regulatory reporting codes used in France for the generation of ISO 20022/PAIN credit transfer and direct debit files. These codes are defined in the technical note DGS n°16-02 of the Banque de France.

-

These regulatory codes are required for non-SEPA credit transfers with an amount over 50 000 € (or equivalent amount in another currency).

+

Beta License: AGPL-3 OCA/l10n-france Translate me on Weblate Try me on Runboat

+

This module adds the regulatory reporting codes used in France for the +generation of ISO 20022/PAIN credit transfer and direct debit files. +These codes are defined in the technical note DGS +n°16-02 +of the Banque de France.

+

These regulatory codes are required for non-SEPA credit transfers with +an amount over 50 000 € (or equivalent amount in another currency).

Table of contents

    @@ -389,7 +394,7 @@

    Bug Tracker

    Bugs are tracked on GitHub 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.

    +feedback.

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

@@ -409,13 +414,15 @@

Contributors

Maintainers

This module is maintained by the OCA.

-Odoo Community Association + +Odoo Community Association +

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.

Current maintainer:

alexis-via

-

This module is part of the OCA/l10n-france project on GitHub.

+

This module is part of the OCA/l10n-france project on GitHub.

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

From 30663c9940f43fc35bc3d8df42a57138cc589716 Mon Sep 17 00:00:00 2001 From: Alexis de Lattre Date: Mon, 27 Jan 2025 15:07:21 +0100 Subject: [PATCH 3/3] [MIG] l10n_fr_account_banking_pain_base: to v18 Standard migration from Odoo v16 to Odoo v18 --- l10n_fr_account_banking_pain_base/__manifest__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/l10n_fr_account_banking_pain_base/__manifest__.py b/l10n_fr_account_banking_pain_base/__manifest__.py index bd49ee9ce..91bccd913 100644 --- a/l10n_fr_account_banking_pain_base/__manifest__.py +++ b/l10n_fr_account_banking_pain_base/__manifest__.py @@ -4,7 +4,7 @@ { "name": "France ISO 20022/PAIN", - "version": "16.0.1.0.0", + "version": "18.0.1.0.0", "category": "Accounting", "license": "AGPL-3", "summary": "Regulatory reporting codes for ISO 20022/PAIN files",