fix in stock entry.py -- dictionary size should not change when looping

This commit is contained in:
Anand Doshi 2013-01-08 17:07:00 +05:30
parent e9418f3be1
commit c2e3f347ea

View File

@ -446,7 +446,7 @@ class DocType(TransactionBase):
only_pending_fetched.append(item)
# delete items with 0 qty
for item in item_qty:
for item in item_qty.keys():
if not item_qty[item][0]:
del item_qty[item]