Skip to content

Commit

Permalink
[MRG] fix logical error in the batch processing of stock moves in fil…
Browse files Browse the repository at this point in the history
…l_inventory, introduced in bugfix of lp:1312045

https://launchpad.net/bugs/1312045
https://launchpad.net/bugs/1329342
  • Loading branch information
ls@numerigraphe.com authored and Stefan Rijnhart committed Jul 2, 2014
1 parent a161b70 commit 7f0bbef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions addons/stock/wizard/stock_fill_inventory.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,8 @@ def fill_inventory(self, cr, uid, ids, context=None):
local_context = dict(context)
local_context['raise-exception'] = False
# To avoid running out of memory, process limited batches
for i in range(0, len(all_move_ids), self.MAX_IMPORT_LINES):
move_ids = all_move_ids[i * self.MAX_IMPORT_LINES:
(i + 1) * self.MAX_IMPORT_LINES]
for i in xrange(0, len(all_move_ids), self.MAX_IMPORT_LINES):
move_ids = all_move_ids[i:i+self.MAX_IMPORT_LINES]
for move in move_obj.browse(cr, uid, move_ids, context=context):
lot_id = move.prodlot_id.id
prod_id = move.product_id.id
Expand Down

0 comments on commit 7f0bbef

Please sign in to comment.