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

Module: Manufacturing

Entity: mrp.production

Compute Method: _compute_show_generate_bom

Inputs Method Outputs
for production in self:
            production.show_generate_bom = not production.bom_id and production.product_id and (
                (production.move_raw_ids and production.product_id not in production.move_raw_ids.product_id)
                or (not production.move_raw_ids and production.workorder_ids)
            )

Back to entity