import frappe


@frappe.whitelist()
def filt_itemby_supplier(doctype, txt, searchfield, start, page_len, filters):
    return frappe.db.sql("""Select parent from `tabItem Supplier` where  supplier= %s""",(filters.get("supplier"))); 

@frappe.whitelist()
def filteritem(doctype, txt, searchfield, start, page_len, filters):
    return frappe.db.sql("""select item_code, item_name, item_group, volume, item_type,stock_uom from `tabItem`"""); 
[((4, 1, 4, 19), 'frappe.whitelist', 'frappe.whitelist', ({}, {}), '()', False, 'import frappe\n'), ((8, 1, 8, 19), 'frappe.whitelist', 'frappe.whitelist', ({}, {}), '()', False, 'import frappe\n'), ((10, 11, 10, 115), 'frappe.db.sql', 'frappe.db.sql', ({(10, 25, 10, 114): '"""select item_code, item_name, item_group, volume, item_type,stock_uom from `tabItem`"""'}, {}), "(\n    'select item_code, item_name, item_group, volume, item_type,stock_uom from `tabItem`'\n    )", False, 'import frappe\n')]