Repository
OCA/l10n-france · module folder · Try on Runboat
Module version
Category
French Localization
Folder size
0.25 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-france
Last tracking update
2026-08-19 11:39:12
Authors
Akretion, Odoo Community Association (OCA), Numérigraphe
Maintainers
Akretion, Odoo Community Association (OCA), Numérigraphe
Committers
Alexis de Lattre, Maksym Yankin, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
- web
- bus
Python dependencies
python-stdnum
System dependencies
None
Required by
l10n_fr_das2
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.

![Partner form view with warning banner](static/description/partner_duplicate_warning.png)

Code Analysis

Views touched (1)
XML IDNameModelTypeStatus
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_registry Char
    inverse='_inverse_fr_company_registry' store=True
  • is_france_country Boolean
    compute='_compute_is_france_country'
  • same_siren_partner_ids Many2many → res.partner
    compute='_compute_same_siren_partner_ids' string='Partners with same SIREN' args: 'res.partner'
Public methods (2)
  • 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…