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

Module: eCommerce

Entity: product.template

Compute Method: _compute_variants_default_code

Inputs Method Outputs
  • product_variant_ids
for template in self:
            template.variants_default_code = RARE_DELIMITER.join(
                template.product_variant_ids.filtered("default_code").mapped("default_code")
            )

Back to entity