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

Module: MRP Project

Entity: mrp.production

Compute Method: _compute_project_id

Inputs Method Outputs
  • bom_id
  • bom_id.project_id
if not self.env.context.get('from_project_action'):
            for production in self:
                production.project_id = production.bom_id.project_id

Back to entity