Skip to content

Commit f938000

Browse files
[FIX] mrp_multi_level: ariable 'move' referenced before assignment
1 parent a98342a commit f938000

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

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)