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_product_uom_qty

Inputs Method Outputs
for production in self:
            if production.product_id.uom_id != production.uom_id:
                production.product_uom_qty = production.uom_id._compute_quantity(production.product_qty, production.product_id.uom_id)
            else:
                production.product_uom_qty = production.product_qty

Back to entity