Operating Unit in Products

product_operating_unit
REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/19.0/product_operating_unit
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYProduct
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Maksym Yankin
WEBSITE
WEBSITEhttps://github.com/OCA/operating-unit
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:40:51
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/operating-unit:
    - operating_unit
odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module introduces the following features:

- It introduces the operating unit to the product template.
- The operating unit from the user is assigned by default when creating
  a new product template.
- In case of multi-company, no operating unit from another company to
  that assigned to the product can be set for it
- It implements user's security rules.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_category_form_view product.category.form product.category field Inherits product.product_category_form_view
product_template_only_form_view product.template_form product.template xpath Inherits product.product_template_form_view
product_template_search_view product.template_filter product.template field Inherits product.product_template_search_view
product_template_tree_view product.template_tree product.template field Inherits product.product_template_tree_view
Models touched (2)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    comodel_name='operating.unit' relation='product_category_operating_unit_rel' string='Operating Units'
Public methods (1)
  • write(self, vals)

New fields (2)
  • categ_id Many2one
    default=<expr>
  • operating_unit_ids Many2many → operating.unit
    comodel_name='operating.unit' compute='_compute_operating_unit_ids' readonly=False relation='product_operating_unit_rel' store=True string='Operating Units'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/18.0/product_operating_unit
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYProduct
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, Hieu.VMB, huynh-ch
WEBSITE
WEBSITEhttps://github.com/OCA/operating-unit
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:30:20
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/operating-unit:
    - operating_unit
odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - html_editor
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module introduces the following features:

- It introduces the operating unit to the product template.
- The operating unit from the user is assigned by default when creating
  a new product template.
- In case of multi-company, no operating unit from another company to
  that assigned to the product can be set for it
- It implements user's security rules.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_category_form_view product.category.form product.category field Inherits product.product_category_form_view
product_template_only_form_view product.template_form product.template xpath Inherits product.product_template_form_view
product_template_search_view product.template_filter product.template field Inherits product.product_template_search_view
product_template_tree_view product.template_tree product.template field Inherits product.product_template_tree_view
Models touched (2)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    string='Operating Units' args: 'operating.unit', 'product_category_operating_unit_rel'
Public methods (1)
  • write(self, vals)

New fields (2)
  • categ_id Many2one
    default=<expr>
  • operating_unit_ids Many2many → operating.unit
    compute='_compute_operating_unit_ids' readonly=False store=True string='Operating Units' args: 'operating.unit', 'product_operating_unit_rel'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/17.0/product_operating_unit
VERSION
VERSION 1.0.0
CATEGORY
CATEGORYProduct
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Jérémy Didderen
WEBSITE
WEBSITEhttps://github.com/OCA/operating-unit
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 19:20:11
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/operating-unit:
    - operating_unit
odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module introduces the following features:

- It introduces the operating unit to the product template.
- The operating unit from the user is assigned by default when creating
  a new product template.
- In case of multi-company, no operating unit from another company to
  that assigned to the product can be set for it
- It implements user's security rules.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_category_form_view product.category.form product.category field Inherits product.product_category_form_view
product_template_only_form_view product.template_form product.template xpath Inherits product.product_template_form_view
product_template_search_view product.template_filter product.template field Inherits product.product_template_search_view
product_template_tree_view product.template_tree product.template field Inherits product.product_template_tree_view
Models touched (2)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    string='Operating Units' args: 'operating.unit', 'product_category_operating_unit_rel'
Public methods (1)
  • write(self, vals)

New fields (2)
  • categ_id Many2one
    default=<expr>
  • operating_unit_ids Many2many → operating.unit
    compute='_compute_operating_unit_ids' readonly=False store=True string='Operating Units' args: 'operating.unit', 'product_operating_unit_rel'
Public methods (0)

No public methods.

REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/16.0/product_operating_unit
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYProduct
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Alessandro Uffreduzzi, GiuTav
WEBSITE
WEBSITEhttps://github.com/OCA/operating-unit
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:54:00
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/operating-unit:
    - operating_unit
odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_category_form_view product.category.form product.category field Inherits product.product_category_form_view
product_template_only_form_view product.template_form product.template xpath Inherits product.product_template_form_view
product_template_search_view product.template_filter product.template field Inherits product.product_template_search_view
product_template_tree_view product.template_tree product.template field Inherits product.product_template_tree_view
Models touched (2)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    string='Operating Units' args: 'operating.unit', 'product_category_operating_unit_rel'
Public methods (1)
  • write(self, vals)

New fields (2)
  • categ_id Many2one → product.category
    change_default=True default=_get_default_category_id help='Select category for the current product' required=True args: 'product.category', 'Product Category'
  • operating_unit_ids Many2many → operating.unit
    default=_default_operating_unit_ids string='Operating Units' args: 'operating.unit', 'product_operating_unit_rel'
Public methods (1)
  • onchange_operating_unit_ids(self)
    @api.onchange('categ_id')
REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/14.0/product_operating_unit
VERSION
VERSION 1.0.3
CATEGORY
CATEGORYProduct
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
COMMITTERS
COMMITTERSoca-travis, Weblate, OCA-git-bot, Nikul Chaudhary, Alessandro Uffreduzzi, jesus01x, oca-git-bot, Rafa Morant
WEBSITE
WEBSITEhttps://github.com/OCA/operating-unit
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:41:12
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/operating-unit:
    - operating_unit
odoo/odoo:
    - product
    - base
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_category_form_view product.category.form product.category field Inherits product.product_category_form_view
product_template_only_form_view product.template_form product.template field Inherits product.product_template_form_view
product_template_search_view product.template_filter product.template field Inherits product.product_template_search_view
product_template_tree_view product.template_tree product.template field Inherits product.product_template_tree_view
Models touched (2)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    string='Operating Units' args: 'operating.unit', 'product_category_operating_unit_rel'
Public methods (1)
  • write(self, vals)

New fields (2)
  • categ_id Many2one → product.category
    change_default=True default=_get_default_category_id help='Select category for the current product' required=True args: 'product.category', 'Product Category'
  • operating_unit_ids Many2many → operating.unit
    default=_default_operating_unit_ids string='Operating Units' args: 'operating.unit', 'product_operating_unit_rel'
Public methods (1)
  • onchange_operating_unit_ids(self)
    @api.onchange('categ_id')
REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/12.0/product_operating_unit
VERSION
VERSION 1.0.1
CATEGORY
CATEGORYProduct
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Open Source Integrators, Serpent Consulting Services Pvt. Ltd., brain-tec AG
COMMITTERS
COMMITTERSMaxime Chambreuil, GitHub, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Nikul Chaudhary, Murtuza Saleh
WEBSITE
WEBSITEhttps://github.com/OCA/operating-unit
LAST TRACKING UPDATE
LAST TRACKING UPDATE2026-07-06 00:29:25
ODOO DEPENDENCIES
ODOO DEPENDENCIES OCA/operating-unit:
    - operating_unit
odoo/odoo:
    - product
    - base
    - decimal_precision
    - mail
    - base_setup
    - web
    - bus
    - web_tour
    - uom
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
product_category_form_view product.category.form product.category field Inherits product.product_category_form_view
product_template_only_form_view product.template_form product.template field Inherits product.product_template_form_view
product_template_search_view product.template_filter product.template field Inherits product.product_template_search_view
product_template_tree_view product.template_tree product.template field Inherits product.product_template_tree_view
Models touched (2)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    string='Operating Units' args: 'operating.unit', 'product_category_operating_unit_rel'
Public methods (1)
  • write(self, vals)
    @api.multi

New fields (2)
  • categ_id Many2one → product.category
    change_default=True default=_get_default_category_id help='Select category for the current product' required=True args: 'product.category', 'Product Category'
  • operating_unit_ids Many2many → operating.unit
    default=_default_operating_unit_ids string='Operating Units' args: 'operating.unit', 'product_operating_unit_rel'
Public methods (1)
  • onchange_operating_unit_ids(self)
    @api.multi@api.onchange('categ_id')
STATUS
STATUSOpen migration PR - not merged yet for this version
REPOSITORY
REPOSITORYOCA/operating-unit
PULL REQUEST
PULL REQUEST[15.0][MIG] product_operating_unit: Migration to 15.0 (#492)