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

Module: Repair Refurbish

Entity: product.template

Compute Method: _compute_refurbish_product

Inputs Method Outputs
  • product_variant_ids
  • product_variant_ids.refurbish_product_id
unique_variants = self.filtered(
            lambda template: len(template.product_variant_ids) == 1
        )
for template in unique_variants:
            template.refurbish_product_id = (
                template.product_variant_ids.refurbish_product_id
            )

Back to entity