Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
113 commits
Select commit Hold shift + click to select a range
240f103
Port to v8 with new API Add demo data Minor enhancements Update POT f…
Dec 12, 2014
3f5cede
Remove debug print
Dec 13, 2014
172ac15
Add license key in __openerp__.py
yvaucher Feb 6, 2015
6399eb2
missed one module in author script
gurneyalex Mar 3, 2015
db401b8
add a README
Mar 13, 2015
31fdb17
Add bug tracker link on README.rst
yvaucher May 22, 2015
6066748
Port to new API Add YAML test in l10n_fr_department
Apr 26, 2015
414d3ae
prefix versions with 8.0
sbidoul Oct 9, 2015
3a5c588
Make modules uninstallable
pedrobaeza Oct 14, 2015
c7272cf
Port l10n_fr_siret to v9
lbelorgey Oct 28, 2015
c848fb9
Remove from demo data partner who doesn't exist
lbelorgey Oct 29, 2015
47bfbd1
Keep the original version number
lbelorgey Oct 30, 2015
294d1fd
OCA Transbot updated translations from Transifex
oca-transbot Aug 6, 2016
ca1dd8c
OCA Transbot updated translations from Transifex
oca-transbot Sep 17, 2016
edaf679
Make modules uninstallable
pedrobaeza Oct 6, 2016
4d88e8d
Rename manifest files
pedrobaeza Oct 6, 2016
e74dd6d
Port modules account_banking_fr_lcr and l10n_fr_siret to v10
alexis-via Oct 7, 2016
86d2742
Remove migration script of older versions
alexis-via Oct 11, 2016
76407ed
fix pylint warnings and errors
gurneyalex Jan 12, 2017
d05d1f1
constraint on multiple records
gurneyalex Jan 12, 2017
209c831
OCA Transbot updated translations from Transifex
oca-transbot Jan 14, 2017
242239d
OCA Transbot updated translations from Transifex
oca-transbot Jan 21, 2017
b078d1f
OCA Transbot updated translations from Transifex
oca-transbot May 1, 2017
be04b45
V11
fmdl Jan 13, 2018
f0b3609
fmdl Jan 13, 2018
9fd671c
FIX
fmdl Jan 13, 2018
0c33a23
FIXTypo
fmdl Jan 13, 2018
d6df3c8
OCA Transbot updated translations from Transifex
oca-transbot Jan 27, 2018
77d6b46
OCA Transbot updated translations from Transifex
oca-transbot Feb 10, 2018
3f21a29
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
82548fb
remove obsolete .pot files [ci skip]
sbidoul Jun 15, 2018
f12870d
Update l10n_fr_siret.pot
oca-travis Jun 23, 2018
8bf3e73
[MIG] l10n_fr_siret from v11 to v12
alexis-via Oct 4, 2018
0279711
Convert README to new OCA format
alexis-via Oct 4, 2018
926d01b
Replace compute_sudo by related_sudo... but as related_sudo=True by d…
alexis-via Oct 20, 2018
4e1be99
Remove u'
alexis-via Oct 22, 2018
94a0c8b
[UPD] README.rst
OCA-git-bot Nov 7, 2018
9ce3ff0
[UPD] Update l10n_fr_siret.pot
oca-travis Nov 7, 2018
ee3cb1a
Update translation files
oca-transbot Dec 9, 2018
32f5888
Fix : method should raise UserError, not return UserError
mduvergey-gpsante Dec 12, 2018
43187a4
[ADD] icon.png
OCA-git-bot Apr 3, 2019
c5259e9
[UPD] README.rst
OCA-git-bot Jul 29, 2019
945e436
[UPD] Update l10n_fr_siret.pot
oca-travis Jul 29, 2019
b514a09
Update translation files
oca-transbot Jul 29, 2019
730df88
[MIG] l10n_fr_siret: migrate 12.0 to 13.0
zuher83 Feb 15, 2020
42942ae
[UPD] README.rst
OCA-git-bot Jun 7, 2020
b2c918b
[IMP] l10n_fr_siret: black, isort, prettier
rvalyi Nov 2, 2020
7569db4
translation fix from v12 3965a21
rvalyi Nov 2, 2020
25fbd6b
[MIG] l10n_fr_siret: Migration to 14.0
rvalyi Nov 2, 2020
d951853
siret: replace track_visibility= by tracking=
alexis-via Nov 18, 2020
bfdd7fd
l10n_fr_siret : NIC can be different for different sites of the company
alexis-via Nov 18, 2020
6f6f57e
[UPD] README.rst
OCA-git-bot Dec 8, 2020
360c2b8
l10n_fr_siret: add warning for duplicates
alexis-via Feb 18, 2021
5e4caf3
[UPD] Update l10n_fr_siret.pot
oca-travis Aug 10, 2021
41b3c83
Update translation files
oca-transbot Aug 10, 2021
026e25c
Restore tests and remove Alpha status
alexis-via Sep 1, 2021
fe2bff2
[UPD] README.rst
OCA-git-bot Sep 2, 2021
6d0ed61
l10n_fr_siret 14.0.1.0.1
OCA-git-bot Sep 2, 2021
567e850
l10n_fr_siret: add autocomplete with opendatasoft.com
alexis-via Oct 14, 2021
fd0e935
Move opendatasoft code to l10n_fr_siren_lookup
alexis-via Oct 17, 2021
3ff2c04
Fix bug when changing SIRET
alexis-via Oct 17, 2021
f465b73
Fix travis for SIRET validation
alexis-via Oct 18, 2021
8b89c00
[UPD] Update l10n_fr_siret.pot
oca-travis Oct 24, 2021
64fc5cb
l10n_fr_siret 14.0.1.1.0
OCA-git-bot Oct 24, 2021
8282e7e
Update translation files
oca-transbot Oct 24, 2021
4fe777e
[FIX] l10n_fr_siret: fix bad data when entering wrong SIRET
alexis-via Oct 25, 2021
ebc19bc
Translated using Weblate (French)
remi-filament Oct 25, 2021
0b92391
[UPD] Update l10n_fr_siret.pot
oca-travis Oct 26, 2021
aa72d41
l10n_fr_siret 14.0.1.2.0
OCA-git-bot Oct 26, 2021
166d3e9
Update translation files
oca-transbot Oct 26, 2021
440e024
l10n_fr_siret: improve duplicate warning banner
alexis-via Oct 31, 2021
0d00ea2
l10n_fr_siret: Add post-install script
alexis-via Oct 31, 2021
d828630
[UPD] Update l10n_fr_siret.pot
oca-travis Nov 2, 2021
d491a46
[UPD] README.rst
OCA-git-bot Nov 2, 2021
71d65e6
l10n_fr_siret 14.0.1.3.0
OCA-git-bot Nov 2, 2021
ae620e7
Update translation files
oca-transbot Nov 2, 2021
dace236
[FIX] check nic validation
Kev-Roche Oct 26, 2021
8c1a451
l10n_fr_siret 14.0.1.3.1
OCA-git-bot Nov 15, 2021
5a52dda
[MIG] l10n_fr_siret from v14 to v15
alexis-via Dec 31, 2021
67c2548
[UPD] Update l10n_fr_siret.pot
Jan 28, 2022
c80f07d
[UPD] README.rst
OCA-git-bot Jan 28, 2022
d777b50
Force stdnum version 1.18
alexis-via Dec 3, 2022
fe866e3
l10n_fr_siret 15.0.1.1.0
OCA-git-bot Dec 3, 2022
4d94541
[MIG] l10n_fr_siret to v16
alexis-via Dec 9, 2022
4534c35
[UPD] Update l10n_fr_siret.pot
Dec 26, 2022
4cfb2b1
[UPD] README.rst
OCA-git-bot Dec 26, 2022
c4cfb11
Translated using Weblate (French)
Jun 20, 2023
9a56a54
Translated using Weblate (Spanish)
Ivorra78 Aug 8, 2023
928939b
[UPD] README.rst
OCA-git-bot Sep 3, 2023
73a6fa3
Update translation files
weblate Oct 10, 2023
45f0a82
Translated using Weblate (Spanish)
Ivorra78 Oct 12, 2023
66a7498
l10n_fr_siret: fix tests caused by bad ES translation
alexis-via Oct 31, 2023
993707c
[IMP] l10n_fr_siret: pre-commit auto fixes
alexis-via Dec 29, 2023
4cb1270
[MIG] l10n_fr_siret to v17
alexis-via Dec 29, 2023
69dc414
[UPD] Update l10n_fr_siret.pot
Feb 12, 2024
5c57c94
[BOT] post-merge updates
OCA-git-bot Feb 12, 2024
c788a62
Update translation files
weblate Feb 12, 2024
3c4231a
[IMP] l10n_fr_siret: pre-commit auto fixes
alexis-via Nov 26, 2024
b55e470
[MIG] l10n_fr_siret from v17 to v18
alexis-via Nov 26, 2024
ec18d86
[IMP] l10n_fr_siret: add siren/nic/siret in list view (hidden by defa…
alexis-via Nov 26, 2024
b743309
[IMP] l10n_fr_siret: add summary key in manifest
alexis-via Nov 26, 2024
7aa7095
[UPD] Update l10n_fr_siret.pot
Dec 20, 2024
6ffefac
[BOT] post-merge updates
OCA-git-bot Dec 20, 2024
2ebf0e0
Update translation files
weblate Dec 20, 2024
4d5faeb
[IMP] l10n_fr_siret: improve data migration script
alexis-via Feb 26, 2025
96daaa5
[IMP] l10n_fr_siret: M2M for duplicate partners
alexis-via Mar 3, 2025
0fca358
[UPD] Update l10n_fr_siret.pot
Mar 10, 2025
d25cdce
[BOT] post-merge updates
OCA-git-bot Mar 10, 2025
90c297f
Update translation files
weblate Mar 10, 2025
e58891a
[BOT] post-merge updates
OCA-git-bot Mar 10, 2025
f43366c
[FIX] l10n_fr_siret: fix readme layout
alexis-via Aug 21, 2025
9397a9d
[BOT] post-merge updates
OCA-git-bot Aug 21, 2025
1b65517
[MIG] l10n_fr_siret: migrate 18 -> 19
alexis-via Dec 23, 2025
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
128 changes: 128 additions & 0 deletions l10n_fr_siret/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
.. image:: https://odoo-community.org/readme-banner-image
:target: https://odoo-community.org/get-involved?utm_source=readme
:alt: Odoo Community Association

============================
Improved SIRET/SIREN support
============================

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

.. |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/license-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/19.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-19-0/l10n-france-19-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=19.0
:alt: Try me on Runboat

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

The module **l10n_fr** from the official addons uses the field
*company_registry* on partners as *SIRET*, but it doesn't verify its
validity. This module **l10n_fr_siret** adds several features for French
partners:

- the string of the field is updated from *SIRET* to **SIREN or
SIRET**,
- the validity of the SIREN and/or SIRET is checked using its checksum,
- it checks the consistence between the VAT number and SIREN,
- it checks that parent and child partners have the same SIREN,
- it adds a warning banner on the partner form view if another partner
has the same SIREN.

|Partner form view with warning banner|

.. |Partner form view with warning banner| image:: https://raw.githubusercontent.com/OCA/l10n-france/19.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 benefit from a
`specific
bugfix <https://github.com/arthurdejong/python-stdnum/issues/291>`__ on
SIRET validation.

Usage
=====

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:%2019.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) <ls@numerigraphe.com>
- Alexis de Lattre <alexis.delattre@akretion.com>

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/19.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 clean_bad_siren_siret
22 changes: 22 additions & 0 deletions l10n_fr_siret/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright 2011-2022 Numérigraphe SARL.
# Copyright 2014-2022 Akretion France
# @author: Alexis de Lattre <alexis.delattre@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

{
"name": "Improved SIRET/SIREN support",
"summary": "Check validity of SIRET/SIREN on partners",
"version": "19.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"],
"external_dependencies": {"python": ["python-stdnum"]},
"data": ["views/res_partner.xml"],
"demo": ["demo/partner_demo.xml"],
"post_init_hook": "clean_bad_siren_siret",
"installable": True,
"development_status": "Mature",
}
18 changes: 18 additions & 0 deletions l10n_fr_siret/demo/partner_demo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" ?>
<!--
Copyright 2014-2021 Akretion France
@author: Alexis de Lattre <alexis.delattre@akretion.com>
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="company_registry">43369857800054</field>
</record>
</odoo>
153 changes: 153 additions & 0 deletions l10n_fr_siret/i18n/bg.po
Original file line number Diff line number Diff line change
@@ -0,0 +1,153 @@
# Translation of Odoo Server.
# This file contains the translation of the following modules:
# * l10n_fr_siret
#
# Translators:
# OCA Transbot <transbot@odoo-community.org>, 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 <transbot@odoo-community.org>, 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(s)"
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
#. odoo-python
#: code:addons/l10n_fr_siret/models/res_partner.py:0
msgid "Partners"
msgstr ""

#. module: l10n_fr_siret
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_partner__same_siren_partner_ids
#: model:ir.model.fields,field_description:l10n_fr_siret.field_res_users__same_siren_partner_ids
msgid "Partners 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
msgid "SIRET '%s' is invalid."
msgstr ""

#. module: l10n_fr_siret
#. odoo-python
#: code:addons/l10n_fr_siret/models/res_partner.py:0
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
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
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
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/have the same <b>SIREN</b>."
msgstr ""

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