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 Sizes

Entity: fsm.order

Compute Method: _compute_size_uom

View 18.0 View 19.0
Inputs Method Outputs
  • size_id
  • size_id.uom_id
for rec in self:
-             rec.size_uom = rec.size_id.uom_id
+             rec.size_uom = rec.size_id and rec.size_id.uom_id or False
  • size_uom

Back to entity