Skip to content
Health
95/100
good
  • Security25/25
    No findings
  • Activity25/25
    Last human commit 3 months ago
  • Required by20/25
    2 modules depend on it
  • Maturity25/25
    In 13 Odoo series since 7.0

Heuristic over the facts below, not an audit · How it's computed

Security findings
Grave / minor (static analysis)
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.

Partner form view with warning banner

Dependencies

Odoo dependencies
odoo/odoo:
- web
- bus
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 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…

Loading…