From 4b847f78979c260ba4c1ba95c35cca2a53296b46 Mon Sep 17 00:00:00 2001 From: Achilles Rasquinha Date: Wed, 14 Feb 2018 16:44:58 +0530 Subject: [PATCH] fixed iteritems --- erpnext/stock/doctype/stock_entry/test_stock_entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/stock/doctype/stock_entry/test_stock_entry.py b/erpnext/stock/doctype/stock_entry/test_stock_entry.py index be92ce13082..2da9f35cccd 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)