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

Module: Field Service - Stock

Entity: fsm.location

Compute Method: _compute_inventory_location_id

Inputs Method Outputs
  • parent_id
  • parent_id.inventory_location_id
for rec in self:
            if rec.parent_id:
                rec.inventory_location_id = rec.parent_id.inventory_location_id

Back to entity