TIP: You can type at any time to perform a new search.
SIRET Lookup
l10n_fr_siret_lookup · OCA/l10n-france
- Repository
- OCA/l10n-france · module folder · Try on Runboat
- Module version
- 1.1.0
- Category
- Partner
- Folder size
- 0.1 MB
- License
- AGPL-3
- Application
- No
- Auto-installable
- No
- Website
- https://github.com/OCA/l10n-france
- Last tracking update
- 2026-08-07 08:43:01
- Authors
- Akretion, Odoo Community Association (OCA), Le Filament
- Maintainers
- Akretion, Odoo Community Association (OCA), Le Filament
- Committers
- Rémi - Le Filament, OCA-git-bot, oca-ci, Benoît
- Odoo dependencies
- Python dependencies
- python-stdnum, requests
- System dependencies
- None
- Required by
- None
- 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](https://ec.europa.eu/taxation_customs/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)
Code Analysis ⓘ
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)
New fields (3)
-
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)
New fields (15)
-
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)
New fields (1)
-
force_vat_siret_lookupBooleandefault=Falsestring='Force VAT Numbers during SIRET Lookups if VIES check times out or is disabled'
No public methods.
New fields (1)
-
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.
New fields (0)
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…
- Status
- Open migration PR — not merged yet for this version
- CI status
- checks failing
- Open since
- 135 days ago
- Last activity
- 4 days ago
- Repository
- OCA/l10n-france
- Pull request
- [19.0] [MIG] l10n_fr_siret_lookup: Migration to 19.0 (#761)