[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

@@ -196,3 +196,11 @@ class ProductMRPArea(models.Model):
self.mrp_maximum_order_qty:
return self.mrp_maximum_order_qty
return qty_to_order
@api.multi
def _to_be_exploded(self):
self.ensure_one()
if self.supply_method == 'manufacture':
return True
else:
return False