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_serial_numbers_count

View 20.0
Inputs Method Outputs
  • product_tracking
  • lot_producing_ids
+ for production in self:
+             if production.product_tracking != 'serial':
+                 production.serial_numbers_count = 0
+                 continue
+             production.serial_numbers_count = len(production.lot_producing_ids)
  • serial_numbers_count

Back to entity