Skip to content

Commit

Permalink
[FIX] stock: lots handling correction when taking entire quant with n…
Browse files Browse the repository at this point in the history
…o lot
  • Loading branch information
jco-odoo committed Sep 30, 2015
1 parent 7b61d6c commit 339eeca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions addons/stock/stock.py
Original file line number Diff line number Diff line change
Expand Up @@ -2524,8 +2524,8 @@ def _move_quants_by_lot(self, cr, uid, ops, lot_qty, quants_taken, false_quants,
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
Expand Down

0 comments on commit 339eeca

Please sign in to comment.