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: product.template

Compute Method: _compute_tracking

View 19.0 View 20.0
Inputs Method Outputs
  • is_storable
  • tracking
- self.filtered(lambda t: not t.is_storable and t.tracking != 'none').tracking = 'none'
+ for template in self:
+             template.tracking = template.is_storable and template.tracking
  • tracking

Back to entity