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

View 20.0
Inputs Method Outputs
  • bom_id
  • product_id
  • move_raw_ids
  • move_raw_ids.product_id
  • workorder_ids
+ 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)
+             )
  • show_generate_bom

Back to entity