SIRET Lookup
l10n_fr_siret_lookup · OCA/l10n-france
-
Security25/25No findings
-
Activity20/25Last human commit 7 months ago
-
Required by5/250 modules depend on it
-
Maturity18/25In 3 Odoo series since 14.0
Heuristic over the facts below, not an audit · How it's computed
Description
This modules updates partner fields via the SIRENE database <https://data.opendatasoft.com>. It uses the dataset economicref-france-sirene-v3 of opendatasoft <https://public.opendatasoft.com/explore/dataset/economicref-france-sirene-v3/information/>.
It computes a theorical VAT number from the SIREN and then checks the validity of the VAT number (depending on configuration) on VIES (if invalid, the VAT number is discarded).
The module supports 2 scenarios:
- update of an existing partner via the menu Action > SIREN Lookup,
- creation of a new partner: start by setting the VAT number field, the SIREN field or SIRET field and Odoo will set the other fields. For usability purposes, it also work when you write the VAT number, SIREN or SIRET in the company name field.
In the 2 scenarios, it will update the following fields:
- Company Name
- Street
- Postal Code
- City
- Country
- SIREN and NIC (i.e. SIRET)
- VAT Number
- Language (creation scenario only)
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 3
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
fr_siret_lookup_form |
fr.siret.lookup | form | New | |
fr_siret_lookup_line_form |
fr.siret.lookup.line | form | New | |
res_config_settings_view_form |
res.config.settings.view.form.inherit.fr.siret.lookup | res.config.settings | form | Inherits base_vat.res_config_settings_view_form |
HTTP endpoints 0
No HTTP endpoints found for this module.
Models touched 5
-
line_idsOne2many → fr.siret.lookup.linereadonly=Truestring='Results' args: 'fr.siret.lookup.line', 'wizard_id' -
nameCharrequired=Truestring='Name to Search' -
partner_idMany2one → res.partnerreadonly=Truerequired=True args: 'res.partner'
-
default_get(self, fields_list)@api.model -
get_lines(self)
-
activeBoolean -
apeCharargs: 'APE Code' -
ape_labelCharargs: 'APE Label' -
categoryChar -
cityChar -
country_idMany2one → res.countrystring='Country' args: 'res.country' -
creation_dateDate -
legal_typeChar -
nameChar -
sirenCharargs: 'SIREN' -
siretCharargs: 'SIRET' -
staffCharargs: '# Staff' -
streetChar -
wizard_idMany2one → fr.siret.lookupondelete='cascade'string='Wizard' args: 'fr.siret.lookup' -
zipChar
-
update_partner(self)
-
force_vat_siret_lookupBooleandefault=Falsestring='Force VAT Numbers during SIRET Lookups if VIES check times out or is disabled'
No public methods.
-
force_vat_siret_lookupBooleanreadonly=Falserelated='company_id.force_vat_siret_lookup'string='Force VAT Numbers during SIRET Lookups if VIES check times out or is disabled'
No public methods.
No new fields.
Public methods (4)-
siren_onchange(self)@api.onchange('siren') -
siren_siret_vat_in_name_onchange(self)@api.onchange('name') -
siret_onchange(self)@api.onchange('siret') -
vat_onchange(self)@api.onchange('vat')
Loading…
Loading…