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

Module: MRP BOM Location

Entity: mrp.bom

Compute Method: _compute_location_id

Inputs Method Outputs
  • picking_type_id
  • picking_type_id.default_location_src_id
for record in self:
            if record.picking_type_id.default_location_src_id:
                record.location_id = record.picking_type_id.default_location_src_id

Back to entity