mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-09 08:02:51 +00:00
[fix] ‘NoneType’ object is not iterable onload of POS (#10941)
This commit is contained in:
committed by
Nabin Hait
parent
7baacb7f74
commit
94799a8b93
@@ -3,12 +3,15 @@
|
|||||||
|
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
import frappe, json
|
import frappe, json
|
||||||
|
from frappe.utils.nestedset import get_root_of
|
||||||
|
|
||||||
@frappe.whitelist()
|
@frappe.whitelist()
|
||||||
def get_items(start, page_length, price_list, item_group, search_value=""):
|
def get_items(start, page_length, price_list, item_group, search_value=""):
|
||||||
serial_no = ""
|
serial_no = ""
|
||||||
batch_no = ""
|
batch_no = ""
|
||||||
item_code = search_value
|
item_code = search_value
|
||||||
|
if not frappe.db.exists('Item Group', item_group):
|
||||||
|
item_group = get_root_of('Item Group')
|
||||||
|
|
||||||
if search_value:
|
if search_value:
|
||||||
# search serial no
|
# search serial no
|
||||||
|
|||||||
Reference in New Issue
Block a user