mirror of
https://github.com/OCA/manufacture.git
synced 2025-01-28 16:37:15 +02:00
[11.0][FIX] multi_level_mrp: stop splosion of products excluded
This commit is contained in:
committed by
Jordi Ballester Alomar
parent
01be20d7d3
commit
5b326ee6cd
@@ -296,6 +296,10 @@ class MultiLevelMrp(models.TransientModel):
|
||||
for bomline in bom.bom_line_ids:
|
||||
if bomline.product_qty <= 0.00:
|
||||
continue
|
||||
if self._exclude_from_mrp(
|
||||
product.mrp_area_id, bomline.product_id):
|
||||
# Stop explosion.
|
||||
continue
|
||||
mrp_date_demand_2 = mrp_date_demand-timedelta(
|
||||
days=(product.mrp_transit_delay+product.
|
||||
mrp_inspection_delay))
|
||||
|
||||
Reference in New Issue
Block a user