Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[18.0][MIG] l10n_fr_siret + add glue module l10n_fr_siret_account #584

Merged
merged 102 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
102 commits
Select commit Hold shift + click to select a range
c7d4769
Port to v8 with new API Add demo data Minor enhancements Update POT f…
Dec 12, 2014
e594e81
Remove debug print
Dec 13, 2014
7fcf2e6
Add license key in __openerp__.py
yvaucher Feb 6, 2015
2efeee8
missed one module in author script
gurneyalex Mar 3, 2015
0520fd5
add a README
Mar 13, 2015
0e721c9
Add bug tracker link on README.rst
yvaucher May 22, 2015
d9eda68
Port to new API Add YAML test in l10n_fr_department
Apr 26, 2015
9b78f94
prefix versions with 8.0
sbidoul Oct 9, 2015
cbbf48a
Make modules uninstallable
pedrobaeza Oct 14, 2015
837c12c
Port l10n_fr_siret to v9
lbelorgey Oct 28, 2015
0156f00
Remove from demo data partner who doesn't exist
lbelorgey Oct 29, 2015
47cb46d
Keep the original version number
lbelorgey Oct 30, 2015
77f9b2f
OCA Transbot updated translations from Transifex
oca-transbot Aug 6, 2016
234de8f
OCA Transbot updated translations from Transifex
oca-transbot Sep 17, 2016
c58934d
Make modules uninstallable
pedrobaeza Oct 6, 2016
e3b7ea3
Rename manifest files
pedrobaeza Oct 6, 2016
f6e4918
Port modules account_banking_fr_lcr and l10n_fr_siret to v10
alexis-via Oct 7, 2016
d07fa5d
Remove migration script of older versions
alexis-via Oct 11, 2016
77bbb50
fix pylint warnings and errors
gurneyalex Jan 12, 2017
3639644
constraint on multiple records
gurneyalex Jan 12, 2017
fdd377c
OCA Transbot updated translations from Transifex
oca-transbot Jan 14, 2017
9aec791
OCA Transbot updated translations from Transifex
oca-transbot Jan 21, 2017
4eadea6
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
ca5afff
V11
fmdl Jan 13, 2018
34b8b84
fmdl Jan 13, 2018
5d06cc5
FIX
fmdl Jan 13, 2018
e6f9ff6
FIXTypo
fmdl Jan 13, 2018
8a4664d
OCA Transbot updated translations from Transifex
oca-transbot Jan 27, 2018
f4cf880
OCA Transbot updated translations from Transifex
oca-transbot Feb 10, 2018
08f38f3
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
9b5ce38
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
e65b9eb
Update l10n_fr_siret.pot
oca-travis Jun 23, 2018
52bb90e
[MIG] l10n_fr_siret from v11 to v12
alexis-via Oct 4, 2018
7b1d57a
Convert README to new OCA format
alexis-via Oct 4, 2018
17d598e
Replace compute_sudo by related_sudo... but as related_sudo=True by d…
alexis-via Oct 20, 2018
856ff39
Remove u'
alexis-via Oct 22, 2018
9330b7b
[UPD] README.rst
OCA-git-bot Nov 7, 2018
285b418
[UPD] Update l10n_fr_siret.pot
oca-travis Nov 7, 2018
d057be4
Update translation files
oca-transbot Dec 9, 2018
fa40c35
Fix : method should raise UserError, not return UserError
mduvergey-gpsante Dec 12, 2018
3ef9184
[ADD] icon.png
OCA-git-bot Apr 3, 2019
3c3f7af
[UPD] README.rst
OCA-git-bot Jul 29, 2019
c89c241
[UPD] Update l10n_fr_siret.pot
oca-travis Jul 29, 2019
212daf4
Update translation files
oca-transbot Jul 29, 2019
d1c319d
[MIG] l10n_fr_siret: migrate 12.0 to 13.0
zuher83 Feb 15, 2020
36a4f58
[UPD] README.rst
OCA-git-bot Jun 7, 2020
476056f
[IMP] l10n_fr_siret: black, isort, prettier
rvalyi Nov 2, 2020
03882c3
translation fix from v12 3965a21
rvalyi Nov 2, 2020
1079034
[MIG] l10n_fr_siret: Migration to 14.0
rvalyi Nov 2, 2020
0dcb68c
siret: replace track_visibility= by tracking=
alexis-via Nov 18, 2020
8cd395c
l10n_fr_siret : NIC can be different for different sites of the company
alexis-via Nov 18, 2020
94ea289
[UPD] README.rst
OCA-git-bot Dec 8, 2020
e570e73
l10n_fr_siret: add warning for duplicates
alexis-via Feb 18, 2021
daf9faf
[UPD] Update l10n_fr_siret.pot
oca-travis Aug 10, 2021
5adf1ab
Update translation files
oca-transbot Aug 10, 2021
105c59e
Restore tests and remove Alpha status
alexis-via Sep 1, 2021
b9653eb
[UPD] README.rst
OCA-git-bot Sep 2, 2021
58331fa
l10n_fr_siret 14.0.1.0.1
OCA-git-bot Sep 2, 2021
81cee2a
l10n_fr_siret: add autocomplete with opendatasoft.com
alexis-via Oct 14, 2021
5160eb7
Move opendatasoft code to l10n_fr_siren_lookup
alexis-via Oct 17, 2021
4a2aef9
Fix bug when changing SIRET
alexis-via Oct 17, 2021
1c94b19
Fix travis for SIRET validation
alexis-via Oct 18, 2021
94f045d
[UPD] Update l10n_fr_siret.pot
oca-travis Oct 24, 2021
0cc123e
l10n_fr_siret 14.0.1.1.0
OCA-git-bot Oct 24, 2021
9890718
Update translation files
oca-transbot Oct 24, 2021
fdc741e
[FIX] l10n_fr_siret: fix bad data when entering wrong SIRET
alexis-via Oct 25, 2021
4982452
Translated using Weblate (French)
remi-filament Oct 25, 2021
35fadb0
[UPD] Update l10n_fr_siret.pot
oca-travis Oct 26, 2021
970ac3b
l10n_fr_siret 14.0.1.2.0
OCA-git-bot Oct 26, 2021
feda035
Update translation files
oca-transbot Oct 26, 2021
e09394d
l10n_fr_siret: improve duplicate warning banner
alexis-via Oct 31, 2021
b3d527b
l10n_fr_siret: Add post-install script
alexis-via Oct 31, 2021
f70d30f
[UPD] Update l10n_fr_siret.pot
oca-travis Nov 2, 2021
ab6b5ab
[UPD] README.rst
OCA-git-bot Nov 2, 2021
4871c18
l10n_fr_siret 14.0.1.3.0
OCA-git-bot Nov 2, 2021
16d5b09
Update translation files
oca-transbot Nov 2, 2021
d9e04cc
[FIX] check nic validation
Kev-Roche Oct 26, 2021
888802f
l10n_fr_siret 14.0.1.3.1
OCA-git-bot Nov 15, 2021
5bce20d
[MIG] l10n_fr_siret from v14 to v15
alexis-via Dec 31, 2021
644e572
[UPD] Update l10n_fr_siret.pot
Jan 28, 2022
0a20729
[UPD] README.rst
OCA-git-bot Jan 28, 2022
e380903
Force stdnum version 1.18
alexis-via Dec 3, 2022
2aec272
l10n_fr_siret 15.0.1.1.0
OCA-git-bot Dec 3, 2022
af0a787
[MIG] l10n_fr_siret to v16
alexis-via Dec 9, 2022
d0698ec
[UPD] Update l10n_fr_siret.pot
Dec 26, 2022
6009add
[UPD] README.rst
OCA-git-bot Dec 26, 2022
47b50e1
Translated using Weblate (French)
Jun 20, 2023
087ea9b
Translated using Weblate (Spanish)
Ivorra78 Aug 8, 2023
aa258db
[UPD] README.rst
OCA-git-bot Sep 3, 2023
4574842
Update translation files
weblate Oct 10, 2023
b611378
Translated using Weblate (Spanish)
Ivorra78 Oct 12, 2023
acc0722
l10n_fr_siret: fix tests caused by bad ES translation
alexis-via Oct 31, 2023
c7710ff
[IMP] l10n_fr_siret: pre-commit auto fixes
alexis-via Dec 29, 2023
d8d0074
[MIG] l10n_fr_siret to v17
alexis-via Dec 29, 2023
8396eaf
[UPD] Update l10n_fr_siret.pot
Feb 12, 2024
5391c0a
[BOT] post-merge updates
OCA-git-bot Feb 12, 2024
bd44c03
Update translation files
weblate Feb 12, 2024
a255fef
[IMP] l10n_fr_siret: pre-commit auto fixes
alexis-via Nov 26, 2024
f484004
[MIG] l10n_fr_siret from v17 to v18
alexis-via Nov 26, 2024
37570d1
[ADD] module l10n_fr_siret_account
alexis-via Nov 26, 2024
905e4aa
[IMP] l10n_fr_siret: add siren/nic/siret in list view (hidden by defa…
alexis-via Nov 26, 2024
b19448f
[IMP] l10n_fr_siret: add summary key in manifest
alexis-via Nov 26, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
125 changes: 125 additions & 0 deletions l10n_fr_siret/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
===============================================
French company identity numbers SIRET/SIREN/NIC
===============================================

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

.. |badge1| image:: https://img.shields.io/badge/maturity-Mature-brightgreen.png
:target: https://odoo-community.org/page/development-status
:alt: Mature
.. |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/18.0/l10n_fr_siret
: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-18-0/l10n-france-18-0-l10n_fr_siret
: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=18.0
:alt: Try me on Runboat

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

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:

- the validity of the SIRET is checked using its checksum.
- it adds **SIREN** and **NIC** fields (reminder: SIREN + NIC = SIRET).
If you enter the SIRET, these 2 fields are automatically computed
from SIRET.
- multi-site companies have a single SIREN and one SIRET per site i.e.
one NIC per site. This module allows to enter a specific NIC on child
partners.
- it adds a warning banner on the partner form view if another partner
has the same SIREN.

|image1|

.. |image1| image:: https://raw.githubusercontent.com/OCA/l10n-france/18.0/l10n_fr_siret/static/description/partner_duplicate_warning.png

**Table of contents**

.. contents::
:local:

Installation
============

It is recommended to install ``python-stdnum>=1.18`` to benefic for a
``specific bugfix <https://github.com/arthurdejong/python-stdnum/issues/291>``\ \_
on SIRET validation.

Usage
=====

On the Partner form, users will be able to enter: \* the SIREN and NIC
numbers: the SIRET number will be computed automatically. \* the SIRET
number: the SIREN and NIC will be computed automatically.

The last digits of the SIREN and NIC are control keys: Odoo will check
their validity.

The warning banner is displayed on the partner form view if another
partner: - has the same SIREN, - if the partner is attached to a
specific company: is in the same company or is not attached to a
specific company, - if the partner is not attached to a specific
company: is in any company or not attached to a specific company.

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 to smash it by providing a detailed and welcomed
`feedback <https://github.com/OCA/l10n-france/issues/new?body=module:%20l10n_fr_siret%0Aversion:%2018.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
-------

* Numérigraphe
* Akretion

Contributors
------------

- Lionel Sausin (Numérigraphe) <[email protected]>
- 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/18.0/l10n_fr_siret>`_ project on GitHub.

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

{
"name": "French company identity numbers SIRET/SIREN/NIC",
"summary": "Complete support for SIRET/SIREN/NIC with checksum validation",
"version": "18.0.1.0.0",
"category": "French Localization",
"author": "Numérigraphe,Akretion,Odoo Community Association (OCA)",
"maintainers": ["alexis-via"],
"website": "https://github.com/OCA/l10n-france",
"license": "AGPL-3",
"depends": ["l10n_fr", "base_view_inheritance_extension"],
"external_dependencies": {"python": ["python-stdnum"]},
"data": [
"views/res_partner.xml",
"views/res_company.xml",
],
"demo": ["demo/partner_demo.xml"],
"post_init_hook": "set_siren_nic",
"installable": True,
"development_status": "Mature",
}
19 changes: 19 additions & 0 deletions l10n_fr_siret/demo/partner_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2014-2021 Akretion France
@author: Alexis de Lattre <[email protected]>
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
-->
<odoo noupdate="1">
<record id="c2c_france" model="res.partner">
<field name="name">Camptocamp France SAS</field>
<field name="is_company" eval="True" />
<field name="street">18 rue du Lac Saint André</field>
<field name="zip">73370</field>
<field name="city">Le Bourget-du-Lac</field>
<field name="country_id" ref="base.fr" />
<field name="website">https://www.camptocamp.com/</field>
<field name="siren">433698578</field>
<field name="nic">00054</field>
</record>
</odoo>
152 changes: 152 additions & 0 deletions l10n_fr_siret/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,152 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_fr_siret
#
# Translators:
# OCA Transbot <[email protected]>, 2017
msgid ""
msgstr ""
"Project-Id-Version: Odoo Server 10.0\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-01-17 03:38+0000\n"
"PO-Revision-Date: 2017-01-17 03:38+0000\n"
"Last-Translator: OCA Transbot <[email protected]>, 2017\n"
"Language-Team: Bulgarian (https://www.transifex.com/oca/teams/23907/bg/)\n"
"Language: bg\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"

#. module: l10n_fr_siret
#: model:ir.model.fields,help:l10n_fr_siret.field_res_partner__parent_is_company
#: model:ir.model.fields,help:l10n_fr_siret.field_res_users__parent_is_company
msgid "Check if the contact is a company, otherwise it is a person"
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model,name:l10n_fr_siret.model_res_company
msgid "Companies"
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model,name:l10n_fr_siret.model_res_partner
msgid "Contact"
msgstr ""

#. module: l10n_fr_siret
#: model_terms:ir.ui.view,arch_db:l10n_fr_siret.res_partner_form_l10n_fr
msgid "Duplicate warning: partner"
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_company__nic
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_partner__nic
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_users__nic
msgid "NIC"
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_partner__parent_is_company
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_users__parent_is_company
msgid "Parent is a Company"
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_partner__same_siren_partner_id
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_users__same_siren_partner_id
msgid "Partner with same SIREN"
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_company__siren
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_partner__siren
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_users__siren
msgid "SIREN"
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_company__siret
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_partner__siret
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_users__siret
msgid "SIRET"
msgstr ""

#. module: l10n_fr_siret
#. odoo-python
#: code:addons/l10n_fr_siret/models/res_partner.py:0
#, python-format
msgid "SIRET '%s' is invalid."
msgstr ""

#. module: l10n_fr_siret
#. odoo-python
#: code:addons/l10n_fr_siret/models/res_partner.py:0
#, python-format
msgid ""
"The NIC '{nic}' of partner '{partner_name}' is incorrect: it must have "
"exactly 5 digits."
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model.fields,help:l10n_fr_siret.field_res_company__nic
#: model:ir.model.fields,help:l10n_fr_siret.field_res_partner__nic
#: model:ir.model.fields,help:l10n_fr_siret.field_res_users__nic
msgid ""
"The NIC number is the official rank number of this office in the company in "
"France. It composes the last 5 digits of the SIRET number."
msgstr ""

#. module: l10n_fr_siret
#. odoo-python
#: code:addons/l10n_fr_siret/models/res_partner.py:0
#, python-format
msgid ""
"The SIREN '{siren}' of partner '{partner_name}' is incorrect: it must have "
"exactly 9 digits."
msgstr ""

#. module: l10n_fr_siret
#. odoo-python
#: code:addons/l10n_fr_siret/models/res_partner.py:0
#, python-format
msgid ""
"The SIREN '{siren}' of partner '{partner_name}' is invalid: the checksum is "
"wrong."
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model.fields,help:l10n_fr_siret.field_res_company__siren
#: model:ir.model.fields,help:l10n_fr_siret.field_res_partner__siren
#: model:ir.model.fields,help:l10n_fr_siret.field_res_users__siren
msgid ""
"The SIREN number is the official identity number of the company in France. "
"It composes the first 9 digits of the SIRET number."
msgstr ""

#. module: l10n_fr_siret
#. odoo-python
#: code:addons/l10n_fr_siret/models/res_partner.py:0
#, python-format
msgid ""
"The SIRET '{siret}' of partner '{partner_name}' is invalid: the checksum is "
"wrong."
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model.fields,help:l10n_fr_siret.field_res_company__siret
#: model:ir.model.fields,help:l10n_fr_siret.field_res_partner__siret
#: model:ir.model.fields,help:l10n_fr_siret.field_res_users__siret
msgid ""
"The SIRET number is the official identity number of this company's office in "
"France. It is composed of the 9 digits of the SIREN number and the 5 digits "
"of the NIC number, ie. 14 digits."
msgstr ""

#. module: l10n_fr_siret
#: model_terms:ir.ui.view,arch_db:l10n_fr_siret.res_partner_form_l10n_fr
msgid "has the same <b>SIREN</b>."
msgstr ""

#~ msgid "Partner"
#~ msgstr "Партньор"
Loading
Loading