Skip to content
Health
68/100
fair
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 7 months ago
  • Required by5/25
    0 modules depend on it
  • Maturity18/25
    In 3 Odoo series since 14.0

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

Security findings
Grave / minor (static analysis)
Required by
0
Modules depending on it
External deps
2 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.1 MB
Module directory on disk
Code analysis 0 migration notes 5 models 3 views 0 HTTP endpoints

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

Odoo dependencies
Python dependencies
python-stdnum, requests
System dependencies
None
Required by
None

Code analysis

Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.

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…