Repository
OCA/l10n-france · module folder · Try on Runboat
Module version
1.0.0
Category
French Localization
Folder size
0.29 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-france
Last tracking update
2026-08-07 09:06:34
Authors
Akretion, Odoo Community Association (OCA), GRAP, Nicolas JEUDY
Maintainers
Akretion, Odoo Community Association (OCA), GRAP, Nicolas JEUDY
Committers
Alexis de Lattre, Weblate, OCA-git-bot, oca-ci
Odoo dependencies
OCA/l10n-france:
odoo/odoo:
- web
- bus
Python dependencies
unidecode
System dependencies
None
Required by
l10n_fr_department_oversea
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.

Code Analysis

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…