Skip to content
Health
90/100
good
  • Security25/25
    No findings
  • Activity20/25
    Last human commit 11 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.29 MB
Module directory on disk
Code analysis 0 migration notes 3 models 6 views 0 HTTP endpoints

Description

This module creates a new model res_country_department, sub division of the res_country_state and populate it with all the french departments, but only the french departments of mainland. If you need the overseas departments, please install the module l10n_fr_department_oversea.

It also adds a computed many2one country_department_id field on the res_partner object.

Dependencies

Odoo dependencies
OCA/l10n-france:
odoo/odoo:
- web
- bus
Python dependencies
unidecode
System dependencies
None
Required by
l10n_fr_department_oversea, 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 6

XML IDNameModelTypeStatus
view_country_department_form res.country.department.form res.country.department form New
view_country_department_search res.country.department.search res.country.department search New
view_country_department_tree res.country.department.tree res.country.department list New
view_partner_form l10n_fr_department.partner.address res.partner form Inherits base.view_partner_form
view_partner_tree l10n_fr_department.partner.tree res.partner tree Inherits base.view_partner_tree
view_res_partner_filter l10n_fr_department.partner.search res.partner search Inherits base.view_res_partner_filter

HTTP endpoints 0

No HTTP endpoints found for this module.

Models touched 3

New fields (4)
  • code Char
    help='The department code (ISO 3166-2 codification)' required=True size=3 string='Department Code'
  • country_id Many2one → res.country
    related='state_id.country_id' store=True args: 'res.country'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    required=True args: 'res.country.state'
Public methods (0)

No public methods.

New fields (1)
  • department_ids One2many → res.country.department
    help='Departments related to this state' string='Departments' args: 'res.country.department', 'state_id'
Public methods (0)

No public methods.

New fields (1)
  • country_department_id Many2one → res.country.department
    compute='_compute_country_department' store=True string='Country Department' args: 'res.country.department'
Public methods (0)

No public methods.

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…