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

Module: DDMRP Packaging

Entity: stock.buffer

Compute Method: _compute_packaging_id

Inputs Method Outputs
for rec in self:
            if (
                rec.product_id
                and rec.packaging_id
                and rec.packaging_id.product_id != rec.product_id
            ):
                rec.packaging_id = False

Back to entity