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

Module: Maintenance Location

Entity: maintenance.request

Compute Method: _compute_equipment_id

Inputs Method Outputs
  • equipment_id
  • equipment_id.location_id
for record in self:
            if record.equipment_id and record.equipment_id.location_id:
                record.location_id = record.equipment_id.location_id

Back to entity