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

Open
wants to merge 102 commits into
base: 18.0
Choose a base branch
from
Open
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
cc8b843
Port to v8 with new API Add demo data Minor enhancements Update POT f…
Dec 12, 2014
acf396b
Remove debug print
Dec 13, 2014
eeaf5bc
Add license key in __openerp__.py
yvaucher Feb 6, 2015
acce64d
missed one module in author script
gurneyalex Mar 3, 2015
c965bd5
add a README
Mar 13, 2015
4d97317
Add bug tracker link on README.rst
yvaucher May 22, 2015
c92bc6c
Port to new API Add YAML test in l10n_fr_department
Apr 26, 2015
0967072
prefix versions with 8.0
sbidoul Oct 9, 2015
440a800
Make modules uninstallable
pedrobaeza Oct 14, 2015
33e70c4
Port l10n_fr_siret to v9
lbelorgey Oct 28, 2015
bd1a284
Remove from demo data partner who doesn't exist
lbelorgey Oct 29, 2015
07f7d04
Keep the original version number
lbelorgey Oct 30, 2015
632e48f
OCA Transbot updated translations from Transifex
oca-transbot Aug 6, 2016
49b191f
OCA Transbot updated translations from Transifex
oca-transbot Sep 17, 2016
8a66294
Make modules uninstallable
pedrobaeza Oct 6, 2016
7ff3d24
Rename manifest files
pedrobaeza Oct 6, 2016
8020f91
Port modules account_banking_fr_lcr and l10n_fr_siret to v10
alexis-via Oct 7, 2016
143de32
Remove migration script of older versions
alexis-via Oct 11, 2016
13dc432
fix pylint warnings and errors
gurneyalex Jan 12, 2017
b80e01b
constraint on multiple records
gurneyalex Jan 12, 2017
91748c4
OCA Transbot updated translations from Transifex
oca-transbot Jan 14, 2017
75c2b06
OCA Transbot updated translations from Transifex
oca-transbot Jan 21, 2017
58e940c
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
505f820
V11
fmdl Jan 13, 2018
284d9af
fmdl Jan 13, 2018
f23ce94
FIX
fmdl Jan 13, 2018
4a4026a
FIXTypo
fmdl Jan 13, 2018
73898e6
OCA Transbot updated translations from Transifex
oca-transbot Jan 27, 2018
4f2a202
OCA Transbot updated translations from Transifex
oca-transbot Feb 10, 2018
8e65f5d
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
05ed832
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
8215dbe
Update l10n_fr_siret.pot
oca-travis Jun 23, 2018
195dbba
[MIG] l10n_fr_siret from v11 to v12
alexis-via Oct 4, 2018
03f64b7
Convert README to new OCA format
alexis-via Oct 4, 2018
f1143ec
Replace compute_sudo by related_sudo... but as related_sudo=True by d…
alexis-via Oct 20, 2018
58af098
Remove u'
alexis-via Oct 22, 2018
c99c4f7
[UPD] README.rst
OCA-git-bot Nov 7, 2018
c85e16c
[UPD] Update l10n_fr_siret.pot
oca-travis Nov 7, 2018
b134638
Update translation files
oca-transbot Dec 9, 2018
2ff1b12
Fix : method should raise UserError, not return UserError
mduvergey-gpsante Dec 12, 2018
4afe761
[ADD] icon.png
OCA-git-bot Apr 3, 2019
7002305
[UPD] README.rst
OCA-git-bot Jul 29, 2019
494b2de
[UPD] Update l10n_fr_siret.pot
oca-travis Jul 29, 2019
ac2d211
Update translation files
oca-transbot Jul 29, 2019
fd53912
[MIG] l10n_fr_siret: migrate 12.0 to 13.0
zuher83 Feb 15, 2020
3099b2c
[UPD] README.rst
OCA-git-bot Jun 7, 2020
5c5c028
[IMP] l10n_fr_siret: black, isort, prettier
rvalyi Nov 2, 2020
173cdc8
translation fix from v12 3965a21
rvalyi Nov 2, 2020
1b44de6
[MIG] l10n_fr_siret: Migration to 14.0
rvalyi Nov 2, 2020
c21759f
siret: replace track_visibility= by tracking=
alexis-via Nov 18, 2020
8dd5432
l10n_fr_siret : NIC can be different for different sites of the company
alexis-via Nov 18, 2020
8897f70
[UPD] README.rst
OCA-git-bot Dec 8, 2020
0ac651d
l10n_fr_siret: add warning for duplicates
alexis-via Feb 18, 2021
c78d7f9
[UPD] Update l10n_fr_siret.pot
oca-travis Aug 10, 2021
74539ba
Update translation files
oca-transbot Aug 10, 2021
7509946
Restore tests and remove Alpha status
alexis-via Sep 1, 2021
d8596f1
[UPD] README.rst
OCA-git-bot Sep 2, 2021
44614da
l10n_fr_siret 14.0.1.0.1
OCA-git-bot Sep 2, 2021
fa156ac
l10n_fr_siret: add autocomplete with opendatasoft.com
alexis-via Oct 14, 2021
76358a7
Move opendatasoft code to l10n_fr_siren_lookup
alexis-via Oct 17, 2021
b6ea85d
Fix bug when changing SIRET
alexis-via Oct 17, 2021
b3ee5e4
Fix travis for SIRET validation
alexis-via Oct 18, 2021
d40d5f0
[UPD] Update l10n_fr_siret.pot
oca-travis Oct 24, 2021
33ba68f
l10n_fr_siret 14.0.1.1.0
OCA-git-bot Oct 24, 2021
0ed2342
Update translation files
oca-transbot Oct 24, 2021
c39804c
[FIX] l10n_fr_siret: fix bad data when entering wrong SIRET
alexis-via Oct 25, 2021
3160cef
Translated using Weblate (French)
remi-filament Oct 25, 2021
bc89363
[UPD] Update l10n_fr_siret.pot
oca-travis Oct 26, 2021
d8a6f80
l10n_fr_siret 14.0.1.2.0
OCA-git-bot Oct 26, 2021
de7e220
Update translation files
oca-transbot Oct 26, 2021
00a9936
l10n_fr_siret: improve duplicate warning banner
alexis-via Oct 31, 2021
5c0a945
l10n_fr_siret: Add post-install script
alexis-via Oct 31, 2021
02425c4
[UPD] Update l10n_fr_siret.pot
oca-travis Nov 2, 2021
0d23921
[UPD] README.rst
OCA-git-bot Nov 2, 2021
183047c
l10n_fr_siret 14.0.1.3.0
OCA-git-bot Nov 2, 2021
456a06a
Update translation files
oca-transbot Nov 2, 2021
b257868
[FIX] check nic validation
Kev-Roche Oct 26, 2021
545023d
l10n_fr_siret 14.0.1.3.1
OCA-git-bot Nov 15, 2021
ae67b06
[MIG] l10n_fr_siret from v14 to v15
alexis-via Dec 31, 2021
c22a9b5
[UPD] Update l10n_fr_siret.pot
Jan 28, 2022
def450f
[UPD] README.rst
OCA-git-bot Jan 28, 2022
aadc4dd
Force stdnum version 1.18
alexis-via Dec 3, 2022
beca9c8
l10n_fr_siret 15.0.1.1.0
OCA-git-bot Dec 3, 2022
5bea4fc
[MIG] l10n_fr_siret to v16
alexis-via Dec 9, 2022
ca9d312
[UPD] Update l10n_fr_siret.pot
Dec 26, 2022
4531882
[UPD] README.rst
OCA-git-bot Dec 26, 2022
a760bf1
Translated using Weblate (French)
Jun 20, 2023
d34b903
Translated using Weblate (Spanish)
Ivorra78 Aug 8, 2023
c16d94f
[UPD] README.rst
OCA-git-bot Sep 3, 2023
4fbcfa3
Update translation files
weblate Oct 10, 2023
9ee5d09
Translated using Weblate (Spanish)
Ivorra78 Oct 12, 2023
eea2660
l10n_fr_siret: fix tests caused by bad ES translation
alexis-via Oct 31, 2023
3633dd1
[IMP] l10n_fr_siret: pre-commit auto fixes
alexis-via Dec 29, 2023
dd1e567
[MIG] l10n_fr_siret to v17
alexis-via Dec 29, 2023
975604c
[UPD] Update l10n_fr_siret.pot
Feb 12, 2024
4fcbca5
[BOT] post-merge updates
OCA-git-bot Feb 12, 2024
ce47144
Update translation files
weblate Feb 12, 2024
880e0aa
[IMP] l10n_fr_siret: pre-commit auto fixes
alexis-via Nov 26, 2024
6409611
[MIG] l10n_fr_siret from v17 to v18
alexis-via Nov 26, 2024
948e33b
[ADD] module l10n_fr_siret_account
alexis-via Nov 26, 2024
4898cbe
[IMP] l10n_fr_siret: add siren/nic/siret in list view (hidden by defa…
alexis-via Nov 26, 2024
7c715e3
[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