Operating Unit
operating_unit · OCA/operating-unit
Health
100/100
good
-
Security25/25No findings
-
Activity25/25Human commit this month
-
Required by25/255 modules depend on it
-
Maturity25/25In 12 Odoo series since 8.0
Heuristic over the facts below, not an audit · How it's computed
Required by
5
Modules depending on it
External deps
0 pip · 0 bin
Python packages / system binaries
License
LGPL-3
No conflicts with its dependencies
Folder size
0.07 MB
Module directory on disk
Code analysis
0 migration notes
3 models
4 views
0 HTTP endpoints
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.
Dependencies
- Odoo dependencies
-
odoo/odoo:- base
- 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
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 4
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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)
-
activeBooleandefault=True -
codeCharrequired=True -
company_idMany2one → res.companydefault=<expr>readonly=Truerequired=True args: 'res.company' -
nameCharrequired=True -
partner_idMany2one → res.partnerrequired=True args: 'res.partner' -
user_idsMany2many → res.usersargs: 'res.users', 'operating_unit_users_rel', 'operating_unit_id', 'user_id', 'Users Allowed'
-
create(self, vals_list)@api.model_create_multi -
write(self, vals)
New fields (3)
-
assigned_operating_unit_idsMany2many → operating.unitcolumn1='user_id'column2='operating_unit_id'comodel_name='operating.unit'default=<expr>relation='operating_unit_users_rel'string='Operating Units' -
default_operating_unit_idMany2one → operating.unitcomodel_name='operating.unit'default=<expr>domain="[('company_id', '=', current_company_id)]" -
operating_unit_idsOne2many → operating.unitcomodel_name='operating.unit'compute='_compute_operating_unit_ids'compute_sudo=Trueinverse='_inverse_operating_unit_ids'string='Allowed Operating Units'
-
default_get(self, fields)@api.model -
operating_units(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…