Partner with Operating Unit

res_partner_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/res_partner_operating_unit
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYGeneric
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Edi Santoso, Niaga Solution
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Edi Santoso, Niaga Solution
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Vincent Van Rossem, 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:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module introduces the following features:

- Adds the Operating Unit (OU) to res partner.
- The user’s default Operating Unit (OU) is proposed at the time of
  creating Partner.
- Security rules are defined to ensure that users can only see Partner
  of that Operating Units in which they are allowed access to.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_partner_form res.partner.form res.partner field Inherits base.view_partner_form
view_partner_tree res.partner.tree res.partner field Inherits base.view_partner_tree
view_res_partner_filter res.partner.select res.partner field Inherits base.view_res_partner_filter
Models touched (1)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    column1='partner_id' column2='operating_unit_id' comodel_name='operating.unit' compute='_compute_operating_unit_ids' readonly=False relation='operating_unit_partner_rel' store=True string='Operating Units'
Public methods (2)
  • search(self, args, offset=0, limit=None, order=None)
    @api.model
  • search_count(self, args, limit=None)
    @api.model
REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/18.0/res_partner_operating_unit
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYGeneric
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Edi Santoso, Niaga Solution
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Edi Santoso, Niaga Solution
COMMITTERS
COMMITTERSOCA-git-bot, oca-ci, 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:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module introduces the following features:

- Adds the Operating Unit (OU) to res partner.
- The user’s default Operating Unit (OU) is proposed at the time of
  creating Partner.
- Security rules are defined to ensure that users can only see Partner
  of that Operating Units in which they are allowed access to.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_partner_form res.partner.form res.partner field Inherits base.view_partner_form
view_partner_tree res.partner.tree res.partner field Inherits base.view_partner_tree
view_res_partner_filter res.partner.select res.partner field Inherits base.view_res_partner_filter
Models touched (2)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    default=<expr> args: 'operating.unit', 'operating_unit_partner_rel', 'partner_id', 'operating_unit_id', 'Operating Units'
Public methods (3)
  • operating_unit_default_get(self, uid2=False)
    @api.model
  • search(self, args, offset=0, limit=None, order=None)
    @api.model
  • search_count(self, args, limit=None)
    @api.model

New fields (0)

No new fields.

Public methods (3)
  • check_partner_operating_unit(self)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/17.0/res_partner_operating_unit
VERSION
VERSION 1.1.0
CATEGORY
CATEGORYGeneric
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Serpent Consulting Services Pvt. Ltd., Edi Santoso, Niaga Solution
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Serpent Consulting Services Pvt. Ltd., Edi Santoso, Niaga Solution
COMMITTERS
COMMITTERSWeblate, OCA-git-bot, oca-ci, Maksym Yankin, sbiosca-s73
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:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION
This module introduces the following features:

- Adds the Operating Unit (OU) to res partner.
- The user’s default Operating Unit (OU) is proposed at the time of
  creating Partner.
- Security rules are defined to ensure that users can only see Partner
  of that Operating Units in which they are allowed access to.

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_partner_form res.partner field Inherits base.view_partner_form
view_partner_tree res.partner field Inherits base.view_partner_tree
view_res_partner_filter res.partner field Inherits base.view_res_partner_filter
Models touched (2)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    default=<expr> required=True args: 'operating.unit', 'operating_unit_partner_rel', 'partner_id', 'operating_unit_id', 'Operating Units'
Public methods (0)

No public methods.

New fields (0)

No new fields.

Public methods (3)
  • check_partner_operating_unit(self)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)
REPOSITORY
REPOSITORYOCA/operating-unit
GIT
GIThttps://github.com/OCA/operating-unit.git
GIT FOLDER
GIT FOLDERhttps://github.com/OCA/operating-unit/tree/12.0/res_partner_operating_unit
VERSION
VERSION 1.1.1
CATEGORY
CATEGORYGeneric
LICENSE
LICENSELGPL-3
APPLICATION
APPLICATIONNo
AUTO-INSTALLABLE
AUTO-INSTALLABLENo
AUTHORS
AUTHORSOdoo Community Association (OCA), Edi Santoso, Niaga Solution
MAINTAINERS
MAINTAINERSOdoo Community Association (OCA), Edi Santoso, Niaga Solution
COMMITTERS
COMMITTERSMaxime Chambreuil, OCA Transbot, oca-travis, Weblate, OCA-git-bot, Hiren Dangar, Patrick Wilson
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:
    - base
PYTHON DEPENDENCIES
PYTHON DEPENDENCIES Not have
SYSTEM DEPENDENCIES
SYSTEM DEPENDENCIES Not have
DESCRIPTION
DESCRIPTION

Code Analysis

Views touched (3)
XML IDNameModelTypeStatus
view_partner_form res.partner.form res.partner field Inherits base.view_partner_form
view_partner_tree res.partner.tree res.partner field Inherits base.view_partner_tree
view_res_partner_filter res.partner.select res.partner field Inherits base.view_res_partner_filter
Models touched (2)

New fields (1)
  • operating_unit_ids Many2many → operating.unit
    default=<expr> args: 'operating.unit', 'operating_unit_partner_rel', 'partner_id', 'operating_unit_id', 'Operating Units'
Public methods (3)
  • operating_unit_default_get(self, uid2=False)
    @api.model
  • search(self, args, offset=0, limit=None, order=None, count=False)
    @api.model
  • search_count(self, args)
    @api.model

New fields (0)

No new fields.

Public methods (3)
  • check_partner_operating_unit(self)
    @api.constrains('partner_id.operating_unit_ids', 'default_operating_unit_id')
  • create(self, vals)
    @api.model
  • write(self, vals)
    @api.multi