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_to_produce

View 20.0
Inputs Method Outputs
  • state
  • qty_production
  • qty_reported_from_previous_wo
+ for wo in self:
+             if wo.state == 'cancel':  # TestMrpWorkorderBackorder.test_mrp_backorder_operations
+                 wo.qty_to_produce = 0
+                 continue
+             wo.qty_to_produce = max(wo.qty_production - wo.qty_reported_from_previous_wo, 0)
  • qty_to_produce

Back to entity