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

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

Back to entity