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

Module: Product set

Entity: product.set.line

Compute Method: _compute_active

Inputs Method Outputs
"""Compute the active field based on the product_set_id by default."""
for line in self:
            if line.product_set_id:
                line.active = line.product_set_id.active
            else:
                line.active = True

Back to entity