From a9f1d6508f36b668ea5f1f1fb81730043cd7e0d7 Mon Sep 17 00:00:00 2001 From: Jairo Llopis Date: Wed, 31 Jan 2024 10:02:02 +0000 Subject: [PATCH] [FIX] l10n_fr_siret[_lookup]: remove wrong dependency Odoo 16 depends on both requests and python-stdnum, so there's no need to specify those dependencies. Besides, [python-stdnum is pinned to 1.16][1]. Thus, when applying https://github.com/OCA/oca-ci/pull/66 locally, the constraint failed. OCA addons should work with the dependencies pinned upstream. [1]: https://github.com/odoo/odoo/blob/fe4d8e8014e50d4335e0a8b052b5098f3a79bcec/requirements.txt#L48 @moduon MT-4520 --- l10n_fr_siret/README.rst | 2 +- l10n_fr_siret/__manifest__.py | 2 +- l10n_fr_siret/static/description/index.html | 2 +- l10n_fr_siret_lookup/README.rst | 2 +- l10n_fr_siret_lookup/__manifest__.py | 2 +- l10n_fr_siret_lookup/static/description/index.html | 2 +- requirements.txt | 1 - 7 files changed, 6 insertions(+), 7 deletions(-) diff --git a/l10n_fr_siret/README.rst b/l10n_fr_siret/README.rst index ce44e24ad3..0541c57de0 100644 --- a/l10n_fr_siret/README.rst +++ b/l10n_fr_siret/README.rst @@ -7,7 +7,7 @@ French company identity numbers SIRET/SIREN/NIC !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:1bef5e4cd64376e2cfc57493b304967a8f2ee67311cee1bf2daaca919a390f29 + !! source digest: sha256:4fe7ec355c01945f41dfe5012dccac1eaf7047463b803ff24e9cc30b8e42a5e4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png diff --git a/l10n_fr_siret/__manifest__.py b/l10n_fr_siret/__manifest__.py index 0fb8348850..de9a3a537a 100644 --- a/l10n_fr_siret/__manifest__.py +++ b/l10n_fr_siret/__manifest__.py @@ -12,7 +12,7 @@ "website": "https://github.com/OCA/l10n-france", "license": "AGPL-3", "depends": ["l10n_fr", "base_view_inheritance_extension"], - "external_dependencies": {"python": ["python-stdnum>=1.18"]}, + "external_dependencies": {"python": ["python-stdnum"]}, "data": [ "views/res_partner.xml", "views/res_company.xml", diff --git a/l10n_fr_siret/static/description/index.html b/l10n_fr_siret/static/description/index.html index 92e8e77ee4..2f93aa791d 100644 --- a/l10n_fr_siret/static/description/index.html +++ b/l10n_fr_siret/static/description/index.html @@ -367,7 +367,7 @@

French company identity numbers SIRET/SIREN/NIC

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:1bef5e4cd64376e2cfc57493b304967a8f2ee67311cee1bf2daaca919a390f29 +!! source digest: sha256:4fe7ec355c01945f41dfe5012dccac1eaf7047463b803ff24e9cc30b8e42a5e4 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

The l10n_fr module from the official addons adds a SIRET field on partners, but it doesn’t verify its validity. This module l10n_fr_siret adds several features:

diff --git a/l10n_fr_siret_lookup/README.rst b/l10n_fr_siret_lookup/README.rst index a0312b3447..9106f12984 100644 --- a/l10n_fr_siret_lookup/README.rst +++ b/l10n_fr_siret_lookup/README.rst @@ -7,7 +7,7 @@ SIRET Lookup !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! - !! source digest: sha256:03fba67efc8266229377bb6b509fc696ca15a5c46eef0db0a8d749d51c7d7cdd + !! source digest: sha256:b413fa5d4b0ae43f7eb3f6a8e1d9ce3f722604a9a0e89da9d63f614f3bd7c397 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png diff --git a/l10n_fr_siret_lookup/__manifest__.py b/l10n_fr_siret_lookup/__manifest__.py index b6e76d9967..be504afc6e 100644 --- a/l10n_fr_siret_lookup/__manifest__.py +++ b/l10n_fr_siret_lookup/__manifest__.py @@ -14,7 +14,7 @@ "depends": [ "l10n_fr_siret", ], - "external_dependencies": {"python": ["requests", "python-stdnum>=1.18"]}, + "external_dependencies": {"python": ["requests", "python-stdnum"]}, "data": [ "wizard/fr_siret_lookup_view.xml", "views/res_partner.xml", diff --git a/l10n_fr_siret_lookup/static/description/index.html b/l10n_fr_siret_lookup/static/description/index.html index 9f33ea1b6d..af93ec2faa 100644 --- a/l10n_fr_siret_lookup/static/description/index.html +++ b/l10n_fr_siret_lookup/static/description/index.html @@ -367,7 +367,7 @@

SIRET Lookup

!! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -!! source digest: sha256:03fba67efc8266229377bb6b509fc696ca15a5c46eef0db0a8d749d51c7d7cdd +!! source digest: sha256:b413fa5d4b0ae43f7eb3f6a8e1d9ce3f722604a9a0e89da9d63f614f3bd7c397 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->

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

This modules updates partner fields via the SIRENE database <https://data.opendatasoft.com>. It uses the dataset economicref-france-sirene-v3 of opendatasoft <https://public.opendatasoft.com/explore/dataset/economicref-france-sirene-v3/information/>. It computes a theorical VAT number from the SIREN and then checks the validity of the VAT number on VIES (if invalid, the VAT number is discarded).

diff --git a/requirements.txt b/requirements.txt index 9286606864..39f8b30231 100644 --- a/requirements.txt +++ b/requirements.txt @@ -2,7 +2,6 @@ pgpy pypdf>=3.1.0 python-stdnum -python-stdnum>=1.18 requests requests_oauthlib unicodecsv