From c2e3f347ea651561119d6573da1e493bbeb79b3e Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Tue, 8 Jan 2013 17:07:00 +0530 Subject: [PATCH] fix in stock entry.py -- dictionary size should not change when looping --- stock/doctype/stock_entry/stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stock/doctype/stock_entry/stock_entry.py b/stock/doctype/stock_entry/stock_entry.py index 18440329ae..fcb939a14c 100644 --- a/stock/doctype/stock_entry/stock_entry.py +++ b/stock/doctype/stock_entry/stock_entry.py @@ -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]