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

Module: Product Ingredients

Entity: product.product

Compute Method: _compute_allergen_id

Inputs Method Outputs
for product in self:
            product.allergen_ids = (
                product.ingredient_ids.mapped("allergen_id")
                + product.ingredient_allergen_trace_ids
            )

Back to entity