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.workorder
Compute Method: _compute_qty_remaining
| Inputs | Method | Outputs |
|---|---|---|
|
for wo in self: - if wo.production_id.product_uom_id: - wo.qty_remaining = max(wo.production_id.product_uom_id.round(wo.qty_production - wo.qty_reported_from_previous_wo - wo.qty_produced), 0) + if wo.production_id.uom_id: + wo.qty_remaining = max(wo.production_id.uom_id.round(wo.qty_production - wo.qty_reported_from_previous_wo - wo.qty_produced), 0) else: wo.qty_remaining = 0 |
|
