Repository
OCA/operating-unit · module folder · Try on Runboat
Module version
1.0.1
Category
Generic
Folder size
0.07 MB
License
LGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/operating-unit
Last tracking update
2026-08-07 09:06:27
Authors
Odoo Community Association (OCA), Serpent Consulting Services Pvt. Ltd., ForgeFlow
Maintainers
Odoo Community Association (OCA), Serpent Consulting Services Pvt. Ltd., ForgeFlow
Committers
jcoux, OCA-git-bot, oca-ci
Odoo dependencies
odoo/odoo:
Python dependencies
None
System dependencies
None
Required by
analytic_operating_unit, operating_unit_access_all, product_operating_unit, res_partner_operating_unit, sales_team_operating_unit
Description
An operating unit (OU) is an organizational entity part of a company,
with separate management ownership. Management by OU is aimed to
introduce the following features:

- Data partitioning from other OU.
- Own sequencing schemes.
- User access administration for data processing and reporting.
- Product and customer independence of OU.
- OU specific P&L and Balance sheet.

Code Analysis

Views touched (4)
XML IDNameModelTypeStatus
view_operating_unit_form operating.unit.form operating.unit form New
view_operating_unit_search operating.unit.search operating.unit search New
view_operating_unit_tree operating.unit.tree operating.unit list New
view_users_form res.users.form res.users form Inherits base.view_users_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (0)

No new fields.

Public methods (0)

No public methods.

New fields (6)
  • active Boolean
    default=True
  • code Char
    required=True
  • company_id Many2one → res.company
    default=<expr> readonly=True required=True args: 'res.company'
  • name Char
    required=True
  • partner_id Many2one → res.partner
    required=True args: 'res.partner', 'Partner'
  • user_ids Many2many → res.users
    args: 'res.users', 'operating_unit_users_rel', 'operating_unit_id', 'user_id', 'Users Allowed'
Public methods (2)
  • create(self, vals_list)
    @api.model_create_multi
  • write(self, vals)

New fields (3)
  • assigned_operating_unit_ids Many2many → operating.unit
    column1='user_id' column2='operating_unit_id' comodel_name='operating.unit' default=<expr> relation='operating_unit_users_rel' string='Operating Units'
  • default_operating_unit_id Many2one → operating.unit
    comodel_name='operating.unit' default=<expr> domain="[('company_id', '=', current_company_id)]" string='Default Operating Unit'
  • operating_unit_ids One2many → operating.unit
    comodel_name='operating.unit' compute='_compute_operating_unit_ids' compute_sudo=True inverse='_inverse_operating_unit_ids' string='Allowed Operating Units'
Public methods (2)
  • default_get(self, fields)
    @api.model
  • operating_units(self)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…