Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Partner with Operating Unit

Entity: res.partner

Compute Method: _compute_operating_unit_ids

Inputs Method Outputs
  • user_ids
  • user_ids.assigned_operating_unit_ids
for partner in self:
            if partner.user_ids:
                partner.operating_unit_ids = (
                    partner.user_ids.assigned_operating_unit_ids
                )

Back to entity