[FIX] stock: lots handling correction when taking entire quant with no lot

This commit is contained in:
Josse Colpaert
2015-10-01 00:31:24 +02:00
parent 7b61d6c14a
commit 339eeca73c
+2 -2
View File
@@ -2524,8 +2524,8 @@ class stock_move(osv.osv):
qty = qty_min
redo_false_quants = True
else:
move_quants_dict[lot] += [false_quants_move[0]]
qty = false_quants_move[0][1]
qty = false_quants_move[0].qty
move_quants_dict[lot] += [(false_quants_move[0], qty)]
false_quants_move.pop(0)
lot_qty[lot] -= qty
lot_move_qty[move] -= qty