mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user