diff --git a/erpnext/stock/doctype/stock_entry/test_stock_entry.py b/erpnext/stock/doctype/stock_entry/test_stock_entry.py index be92ce1308..2da9f35ccc 100644 --- a/erpnext/stock/doctype/stock_entry/test_stock_entry.py +++ b/erpnext/stock/doctype/stock_entry/test_stock_entry.py @@ -21,7 +21,7 @@ from six import iteritems def get_sle(**args): condition, values = "", [] - for key, value in iteritems(args.iteritems): + for key, value in iteritems(args): condition += " and " if condition else " where " condition += "`{0}`=%s".format(key) values.append(value)