From 94799a8b931e25cc98964776e1f69568c4a1d867 Mon Sep 17 00:00:00 2001 From: rohitwaghchaure Date: Thu, 28 Sep 2017 10:56:27 +0530 Subject: [PATCH] =?UTF-8?q?[fix]=20=E2=80=98NoneType=E2=80=99=20object=20i?= =?UTF-8?q?s=20not=20iterable=20onload=20of=20POS=20(#10941)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- erpnext/selling/page/point_of_sale/point_of_sale.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/erpnext/selling/page/point_of_sale/point_of_sale.py b/erpnext/selling/page/point_of_sale/point_of_sale.py index fd6b8c9181..d74f1f06e3 100644 --- a/erpnext/selling/page/point_of_sale/point_of_sale.py +++ b/erpnext/selling/page/point_of_sale/point_of_sale.py @@ -3,12 +3,15 @@ from __future__ import unicode_literals import frappe, json +from frappe.utils.nestedset import get_root_of @frappe.whitelist() def get_items(start, page_length, price_list, item_group, search_value=""): serial_no = "" batch_no = "" item_code = search_value + if not frappe.db.exists('Item Group', item_group): + item_group = get_root_of('Item Group') if search_value: # search serial no