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_lots

View 17.0 View 20.0
Inputs Method Outputs
  • product_id
  • product_id.tracking
for production in self:
-             production.show_final_lots = production.product_id.tracking != 'none'
+             production.show_final_lots = production.product_id.tracking in ['lot', 'serial']
  • show_final_lots

Back to entity