commit | c2e3f347ea651561119d6573da1e493bbeb79b3e | [log] [tgz] |
---|---|---|
author | Anand Doshi <anand@erpnext.com> | Tue Jan 08 17:07:00 2013 +0530 |
committer | Anand Doshi <anand@erpnext.com> | Tue Jan 08 17:07:00 2013 +0530 |
tree | c4b0bd7dc14317551ab4ac04f0b8d71363f339bd | |
parent | e9418f3be1ac2041d3aeba80dad3100e8664543e [diff] |
fix in stock entry.py -- dictionary size should not change when looping
diff --git a/stock/doctype/stock_entry/stock_entry.py b/stock/doctype/stock_entry/stock_entry.py index 1844032..fcb939a 100644 --- a/stock/doctype/stock_entry/stock_entry.py +++ b/stock/doctype/stock_entry/stock_entry.py
@@ -446,7 +446,7 @@ 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]