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.production

Compute Method: _compute_allowed_uom_ids

View 20.0
Inputs Method Outputs
  • product_id
  • product_id.bom_ids
  • product_id.bom_ids.uom_id
+ for production in self:
+             production.allowed_uom_ids = production.product_id._get_available_uoms() | production.product_id.bom_ids.uom_id
  • allowed_uom_ids

Back to entity