[IMP]mrp_multi_level

* let third modules to choose wether to continue exploding or not

This is useful for subcontracting and potentially for other flows.
This commit is contained in:
AaronHForgeFlow
2020-10-30 10:35:40 +01:00
parent 86d24ee828
commit 4123c8f71c
2 changed files with 9 additions and 1 deletions

View File

@@ -273,7 +273,7 @@ class MultiLevelMrp(models.TransientModel):
planned_order = self.env['mrp.planned.order'].create(order_data)
qty_ordered = qty_ordered + qty
if product_mrp_area_id.supply_method == 'manufacture':
if product_mrp_area_id._to_be_exploded():
self.explode_action(
product_mrp_area_id, mrp_action_date,
name, qty, planned_order)