French Departments (Départements)

l10n_fr_department
REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/19.0/l10n_fr_department
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
COMMITTERS
COMMITTERSAlexis de Lattre, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-france
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:51
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES unidecode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits base.view_partner_form
view_partner_tree l10n_fr_department.partner.tree res.partner field Inherits base.view_partner_tree
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
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.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/18.0/l10n_fr_department
VERSION
VERSION 2.1.0
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
COMMITTERS
COMMITTERSAlexis de Lattre, Weblate, OCA-git-bot, oca-ci, Hugo Trentesaux
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-france
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:19
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES unidecode
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 xpath Inherits base.view_partner_form
view_partner_tree l10n_fr_department.partner.tree res.partner field Inherits base.view_partner_tree
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
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.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/17.0/l10n_fr_department
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
COMMITTERS
COMMITTERSAlexis de Lattre, Weblate, OCA-git-bot, oca-ci
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-france
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:10
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
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 tree New
view_partner_form l10n_fr_department.partner.address res.partner xpath Inherits base.view_partner_form
view_partner_tree l10n_fr_department.partner.tree res.partner field Inherits base.view_partner_tree
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
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
    help='Country of the related state' related='state_id.country_id' store=True string='Country' args: 'res.country'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' 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.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/16.0/l10n_fr_department
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
COMMITTERS
COMMITTERSAlexis de Lattre, Sylvain LE GAL, Weblate, OCA-git-bot, oca-ci, Michel Perrocheau
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-france
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:53:59
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
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 tree New
view_partner_form l10n_fr_department.partner.address res.partner field Inherits base.view_partner_form
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
Models touched (4)

New fields (1)
  • country_department_id Many2one → res.country.department
    comodel_name='res.country.department' related='partner_id.country_department_id' store=True
Public methods (0)

No public methods.

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
    help='Country of the related state' related='state_id.country_id' store=True string='Country' args: 'res.country'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' args: 'res.country.state'
Public methods (1)
  • name_get(self)
    @api.depends('name', 'code')

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.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/15.0/l10n_fr_department
VERSION
VERSION 1.2.0
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
COMMITTERS
COMMITTERSAlexis de Lattre, Weblate, OCA-git-bot, SilvioC2C, oca-ci, Maksym Yankin
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-france
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:46:43
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (5)
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 tree New
view_partner_form l10n_fr_department.partner.address res.partner field Inherits base.view_partner_form
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
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
    help='Country of the related state' related='state_id.country_id' store=True string='Country' args: 'res.country'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' args: 'res.country.state'
Public methods (1)
  • name_get(self)
    @api.depends('name', 'code')

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)
  • department_id Many2one → res.country.department
    compute='_compute_department' store=True string='Department' args: 'res.country.department'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/14.0/l10n_fr_department
VERSION
VERSION 1.0.2
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
COMMITTERS
COMMITTERSAlexis de Lattre, Sylvain LE GAL, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-france
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
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 tree New
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
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
    help='Country of the related state' readonly=True related='state_id.country_id' store=True string='Country' args: 'res.country'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' args: 'res.country.state'
Public methods (1)
  • name_get(self)
    @api.depends('name', 'code')

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)
  • department_id Many2one → res.country.department
    compute='_compute_department' store=True string='Department' args: 'res.country.department'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/13.0/l10n_fr_department
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
COMMITTERS
COMMITTERSAlexis de Lattre, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:34:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
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 tree New
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
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
    help='Country of the related state' readonly=True related='state_id.country_id' store=True string='Country' args: 'res.country'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' args: 'res.country.state'
Public methods (1)
  • name_get(self)
    @api.depends('name', 'code')

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)
  • department_id Many2one → res.country.department
    compute='_compute_department' readonly=True store=True string='Department' args: 'res.country.department'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/12.0/l10n_fr_department
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
COMMITTERS
COMMITTERSAlexis de Lattre, Alexandre Fayolle, Sylvain LE GAL, OCA Transbot, oca-travis, Weblate, OCA-git-bot
WEBSITE
WEBSITEhttps://github.com/OCA/l10n-france
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:25
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
    - contacts
    - mail
    - base_setup
    - web
    - bus
    - web_tour
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
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 tree New
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
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
    help='Country of the related state' readonly=True related='state_id.country_id' store=True string='Country' args: 'res.country'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' args: 'res.country.state'
Public methods (1)
  • name_get(self)
    @api.depends('name', 'code')

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)
  • department_id Many2one → res.country.department
    compute='_compute_department' readonly=True store=True string='Department' args: 'res.country.department'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/11.0/l10n_fr_department
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP, Nicolas JEUDY
COMMITTERS
COMMITTERSAlexandre Fayolle, Sylvain LE GAL, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:24:02
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
    - contacts
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
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 tree New
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
Models touched (3)

New fields (5)
  • code Char
    help='The department code (ISO 3166-2 codification)' required=True size=3 string='Department Code'
  • country_id Many2one → res.country
    help='Country of the related state' readonly=True related='state_id.country_id' store=True string='Country' args: 'res.country'
  • display_name Char
    compute='_compute_display_name_field' readonly=True store=True string='Display Name'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' 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)
  • department_id Many2one → res.country.department
    compute='_compute_department' readonly=True store=True string='Department' args: 'res.country.department'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/10.0/l10n_fr_department
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP
COMMITTERS
COMMITTERSAlexis de Lattre, Alexandre Fayolle, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:20:03
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
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 tree New
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
Models touched (3)

New fields (5)
  • code Char
    help='The department code (ISO 3166-2 codification)' required=True size=3 string='Department Code'
  • country_id Many2one → res.country
    help='Country of the related state' readonly=True related='state_id.country_id' store=True string='Country' args: 'res.country'
  • display_name Char
    compute='_compute_display_name_field' readonly=True store=True string='Display Name'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' 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)
  • department_id Many2one → res.country.department
    compute='_compute_department' readonly=True store=True string='Department' args: 'res.country.department'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/9.0/l10n_fr_department
VERSION
VERSION 0.1.1
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP
COMMITTERS
COMMITTERSAlexis de Lattre, Pedro M. Baeza, Stéphane Bidoul (ACSONE), OCA Transbot
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:15:24
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
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 tree New
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
Models touched (3)

New fields (5)
  • code Char
    help='The department code.(ISO 3166-2 Codification)' required=True size=3 string='Departement Code'
  • country_id Many2one → res.country
    help='Country of the related state' readonly=True related='state_id.country_id' store=True string='Country' args: 'res.country'
  • display_name Char
    compute='compute_display_name' readonly=True store=True string='Display Name'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' args: 'res.country.state'
Public methods (1)
  • compute_display_name(self)
    @api.one@api.depends('name', 'code')

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)
  • department_id Many2one → res.country.department
    compute='_compute_department' readonly=True store=True string='Department' args: 'res.country.department'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/8.0/l10n_fr_department
VERSION
VERSION 0.1.1
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Akretion, GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Akretion, GRAP
COMMITTERS
COMMITTERSStéphane Bidoul, Alexis de Lattre, Yannick Vaucher, Alexandre Fayolle, Stéphane Bidoul (ACSONE), OCA Transbot, oca-travis, Weblate
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:11:27
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Populate Database with French Departments (Départements)
========================================================

Feature:
--------
    * Create a new model res_country_department, sub division of the res_country_state.
    * Populate the table res_country_department with the french departments.
    * Add a link from res_partner to res_country_department (not displayed in the partner view).

Technical informations:
-----------------------
    * Use 3166-2:FR codifications (more detailhttp://fr.wikipedia.org/wiki/ISO_3166-2:FR)

Copyright, Authors and Licence:
-------------------------------
    * Copyright: 2013-2014, Groupement Régional Alimentaire de Proximité
    * Copyright: 2014, Akretion (http://www.akretion.com/)
    * Author: Sylvain LE GAL (https://twitter.com/legalsylvain)
    * Author: Alexis de Lattre <alexis.delattre@akretion.com>
    * Licence: AGPL-3 (http://www.gnu.org/licenses/)

Code Analysis

Views touched (4)
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 tree New
view_res_partner_filter l10n_fr_department.partner.search res.partner filter Inherits base.view_res_partner_filter
Models touched (3)

New fields (5)
  • code Char
    help='The department code in two chars.(ISO 3166-2 Codification)' required=True size=2 string='Departement Code'
  • country_id Many2one → res.country
    help='Country of the related state' readonly=True related='state_id.country_id' store=True string='Country' args: 'res.country'
  • display_name Char
    compute='compute_display_name' readonly=True store=True string='Display Name'
  • name Char
    required=True size=128 string='Department Name'
  • state_id Many2one → res.country.state
    help='State related to the current department' required=True string='State' args: 'res.country.state'
Public methods (1)
  • compute_display_name(self)
    @api.one@api.depends('name', 'code')

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)
  • department_id Many2one → res.country.department
    compute='_compute_department' readonly=True store=True string='Department' args: 'res.country.department'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/l10n-france
GIT
GIThttps://github.com/OCA/l10n-france.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/l10n-france/tree/7.0/l10n_fr_department
VERSION
VERSION 0.1
CATEGORY
CATEGORYFrench Localization
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSGRAP
MAINTAINERS
MAINTAINERSGRAP
COMMITTERS
COMMITTERSAlexis de Lattre, Sylvain LE GAL
WEBSITE
WEBSITEhttp://www.grap.coop
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:07:16
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/l10n-france:
    - l10n_fr_state
odoo/odoo:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
Populate Database with French Departments (Départements)
========================================================

Feature:
--------
    * Create a new model res_country_department, sub division of the res_country_state.
    * Populate the table res_country_department with the french departments.
    * Add a link from res_partner to res_country_department (not displayed in the partner view).

Technical informations:
-----------------------
    * Use 3166-2:FR codifications (more detailhttp://fr.wikipedia.org/wiki/ISO_3166-2:FR)

Copyright, Authors and Licence:
-------------------------------
    * Copyright: 2013-2014, Groupement Régional Alimentaire de Proximité
    * Copyright: 2014, Akretion (http://www.akretion.com/)
    * Author: Sylvain LE GAL (https://twitter.com/legalsylvain)
    * Author: Alexis de Lattre <alexis.delattre@akretion.com>
    * Licence: AGPL-3 (http://www.gnu.org/licenses/)

Code Analysis

Views touched (3)
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 tree New
Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (0)

No public methods.