Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Inventory

Entity: stock.picking

Compute Method: _compute_has_tracking

View 19.0 View 20.0
Inputs Method Outputs
  • move_ids
for picking in self:
-             picking.has_tracking = any(m.has_tracking != 'none' for m in picking.move_ids)
+             picking.has_tracking = any(m.product_id.tracking in ['lot', 'serial'] for m in picking.move_ids)
  • has_tracking

Back to entity