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_lot_ids

View 19.0 View 20.0
Inputs Method Outputs
  • state
  • move_raw_ids
for order in self:
-             order.show_lot_ids = order.state != 'draft' and any(m.product_id.tracking != 'none' for m in order.move_raw_ids)
+             order.show_lot_ids = order.state != 'draft' and any(m.product_id.tracking in ['lot', 'serial'] for m in order.move_raw_ids)
  • show_lot_ids

Back to entity