mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-16 03:29:16 +00:00
fix: avoid mutating iterator while iterating over it
(cherry picked from commit fdfa39c231)
This commit is contained in:
committed by
Ankush Menat
parent
65844932cc
commit
f2aa5015cb
@@ -1452,7 +1452,7 @@ class StockEntry(StockController):
|
|||||||
item_dict[item]["qty"] = 0
|
item_dict[item]["qty"] = 0
|
||||||
|
|
||||||
# delete items with 0 qty
|
# delete items with 0 qty
|
||||||
list_of_items = item_dict.keys()
|
list_of_items = list(item_dict.keys())
|
||||||
for item in list_of_items:
|
for item in list_of_items:
|
||||||
if not item_dict[item]["qty"]:
|
if not item_dict[item]["qty"]:
|
||||||
del item_dict[item]
|
del item_dict[item]
|
||||||
|
|||||||
Reference in New Issue
Block a user