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

Module: Manufacturing

Entity: mrp.workcenter.capacity

Compute Method: _compute_uom_id

View 20.0
Inputs Method Outputs
  • product_id
  • product_id.uom_id
+ for capacity in self:
+             capacity.uom_id = capacity.product_id.uom_id or self.env.ref('uom.product_uom_unit')
  • uom_id

Back to entity