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

Module: POS - Product Template

Entity: product.product

Compute Method: _compute_template_variants

Inputs Method Outputs
  • product_tmpl_id
  • product_tmpl_id.product_variant_ids
for record in self:
            record.template_variants = len(record.product_tmpl_id.product_variant_ids)

Back to entity