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_serial_mass_produce

View 17.0
Inputs Method Outputs
  • state
  • product_id
  • product_id.tracking
  • product_qty
  • product_uom_id
  • product_uom_id.rounding
  • qty_producing
- self.show_serial_mass_produce = False
- for order in self:
-             if order.state in ['confirmed', 'progress', 'to_close'] and order.product_id.tracking == 'serial' and \
-                     float_compare(order.product_qty, 1, precision_rounding=order.product_uom_id.rounding) > 0 and \
-                     float_compare(order.qty_producing, order.product_qty, precision_rounding=order.product_uom_id.rounding) < 0:
-                 order.show_serial_mass_produce = True
  • show_serial_mass_produce

Back to entity