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_show_produce

View 19.0
Inputs Method Outputs
  • state
  • qty_producing
  • product_qty
- for production in self:
-             state_ok = production.state in ('confirmed', 'progress', 'to_close')
-             qty_none_or_all = production.qty_producing in (0, production.product_qty)
-             production.show_produce_all = state_ok and qty_none_or_all
-             production.show_produce = state_ok and not qty_none_or_all
  • show_produce_all
  • show_produce

Back to entity