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.unbuild

Compute Method: _compute_bom_id

Inputs Method Outputs
for order in self:
            if order.mo_id:
                order.bom_id = order.mo_id.bom_id
            else:
                order.bom_id = self.env['mrp.bom']._bom_find(
                    order.product_id, company_id=order.company_id.id
                )[order.product_id]

Back to entity