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

Module: Product Pack

Entity: product.template

Compute Method: _compute_pack_modifiable_invisible

Inputs Method Outputs
"""
        The pack modifiable field should be invisible when:
            - pack details are not displayed or
            - pack component prices are not detailed

        """
for product in self:
            product.pack_modifiable_invisible = (
                product.pack_type != "detailed"
                or product.pack_component_price != "detailed"
            )

Back to entity