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

Module: Operating Unit in Sales

Entity: sale.order

Compute Method: _compute_operating_unit_id

Inputs Method Outputs
  • team_id
  • team_id.operating_unit_id
for sale in self:
            if sale.team_id:
                sale.operating_unit_id = sale.team_id.operating_unit_id

Back to entity