Improved SIRET/SIREN support
l10n_fr_siret · OCA/l10n-france
OCA/account-financial-tools 7.0 → OCA/l10n-france 8.0–19.0
Health
95/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 3 months ago
-
Required by20/252 modules depend on it
-
Maturity25/25In 13 Odoo series since 7.0
Heuristic over the facts below, not an audit · How it's computed
Required by
2
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.25 MB
Module directory on disk
Code analysis
0 migration notes
2 models
1 view
0 HTTP endpoints
Description
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.

Dependencies
- Odoo dependencies
- Python dependencies
- python-stdnum
- System dependencies
- None
- Required by
- l10n_fr_das2, l10n_fr_intrastat_product
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 1
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
view_partner_form |
res.partner.form.same_siren_banner | res.partner | form | Inherits base.view_partner_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 2
New fields (0)
No new fields.
Public methods (0)No public methods.
New fields (3)
-
company_registryCharinverse='_inverse_fr_company_registry'store=True -
is_france_countryBooleancompute='_compute_is_france_country' -
same_siren_partner_idsMany2many → res.partnercompute='_compute_same_siren_partner_ids'string='Partners with same SIREN' args: 'res.partner'
-
action_open_business_doc(self)Method called when you click on the link in the duplicate warning banner -
write(self, vals)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…