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

Module: Repairs

Entity: repair.order

Compute Method: compute_product_uom

View 19.0
Inputs Method Outputs
  • product_id
  • product_uom
  • product_id.uom_id
- for repair in self:
-             if not repair.product_id:
-                 repair.product_uom = False
-             elif not repair.product_uom:
-                 repair.product_uom = repair.product_id.uom_id
  • product_uom

Back to entity