Skip to content

Commit c1fe142

Browse files
committed
Merge PR OCA#1196 into 16.0
Signed-off-by LoisRForgeFlow
2 parents a98342a + f938000 commit c1fe142

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

mrp_multi_level/wizards/mrp_multi_level.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -680,9 +680,7 @@ def _init_mrp_move_non_grouped_demand(self, nbr_create, product_mrp_area):
680680
onhand += move.mrp_qty
681681
if onhand < product_mrp_area.mrp_minimum_stock:
682682
mrp_date = self._get_safety_stock_target_date(product_mrp_area)
683-
qtytoorder = self._get_qty_to_order(
684-
product_mrp_area, move.mrp_date, 0, onhand
685-
)
683+
qtytoorder = self._get_qty_to_order(product_mrp_area, mrp_date, 0, onhand)
686684
name = _("Safety Stock")
687685
cm = self.create_action(
688686
product_mrp_area_id=product_mrp_area,

0 commit comments

Comments
 (0)