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 IDNameModelTypeStatus
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_ids One2many → fr.siret.lookup.line
    readonly=True string='Results' args: 'fr.siret.lookup.line', 'wizard_id'
  • name Char
    required=True string='Name to Search'
  • partner_id Many2one → res.partner
    readonly=True required=True args: 'res.partner'
Public methods (2)
  • default_get(self, fields_list)
    @api.model
  • get_lines(self)

New fields (15)
  • active Boolean
  • ape Char
    args: 'APE Code'
  • ape_label Char
    args: 'APE Label'
  • category Char
  • city Char
  • country_id Many2one → res.country
    string='Country' args: 'res.country'
  • creation_date Date
  • legal_type Char
  • name Char
  • siren Char
    args: 'SIREN'
  • siret Char
    args: 'SIRET'
  • staff Char
    args: '# Staff'
  • street Char
  • wizard_id Many2one → fr.siret.lookup
    ondelete='cascade' string='Wizard' args: 'fr.siret.lookup'
  • zip Char
Public methods (1)
  • update_partner(self)

New fields (1)
  • force_vat_siret_lookup Boolean
    default=False string='Force VAT Numbers during SIRET Lookups if VIES check times out or is disabled'
Public methods (0)

No public methods.

New fields (1)
  • force_vat_siret_lookup Boolean
    readonly=False related='company_id.force_vat_siret_lookup' string='Force VAT Numbers during SIRET Lookups if VIES check times out or is disabled'
Public methods (0)

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)