Product Origin (French Departments)

l10n_fr_department_product_origin
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_product_origin
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYSales
LICENSE
LICENSEAGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), GRAP
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), GRAP
COMMITTERS
COMMITTERSSylvain LE GAL, Weblate, OCA-git-bot, oca-ci
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_department
    - l10n_fr_state
OCA/product-attribute:
    - product_origin
odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
    - contacts
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_template_search_view product.template filter Inherits product_origin.product_template_search_view
view_product_product_form product.product field Inherits product_origin.view_product_product_form
view_product_product_form_variant product.product field Inherits product_origin.view_product_product_form_variant
view_product_template_form product.template field Inherits product_origin.product_template_form_view
Models touched (2)

New fields (2)
  • department_id Many2one → res.country.department
    comodel_name='res.country.department' ondelete='restrict' string='Department of Origin'
  • department_id_domain Binary
    compute='_compute_department_id_domain' help='Technical field, used to compute dynamically department domain depending on the state.'
Public methods (2)
  • onchange_department_id(self)
    @api.onchange('department_id')
  • onchange_state_id(self)
    @api.onchange('state_id')

New fields (2)
  • department_id Many2one → res.country.department
    comodel_name='res.country.department' compute='_compute_department_id' inverse='_inverse_department_id' store=True string='Department of Origin'
  • department_id_domain Binary
    compute='_compute_department_id_domain' help='Technical field, used to compute dynamically department domain depending on the state.'
Public methods (2)
  • onchange_department_id(self)
    @api.onchange('department_id')
  • onchange_state_id(self)
    @api.onchange('state_id')