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.bom.byproduct

Compute Method: _compute_product_uom_id

Inputs Method Outputs
""" Changes UoM if product_id changes. """
for record in self:
            record.product_uom_id = record.product_id.uom_id.id

Back to entity