[hub] hub page using BaseList

This commit is contained in:
Faris Ansari
2017-12-10 22:02:41 +05:30
committed by Prateeksha Singh
parent 2ef1f84041
commit 9b64620bc0
6 changed files with 228 additions and 5 deletions

View File

@@ -17,9 +17,11 @@ def enable_hub():
@frappe.whitelist()
def get_items(start=0, limit=20, category=None, order_by=None, company=None, text=None):
connection = get_client_connection()
filters = {
'hub_category': category,
}
filters = {}
if category:
filters.update({ 'hub_category': category })
if text:
filters.update({'item_name': ('like', '%' + text + '%')})
if company: