set default params for paging (#11500)

This commit is contained in:
Faris Ansari 2017-11-10 10:50:49 +05:30 committed by Nabin Hait
parent 4a864c1eea
commit 99e31f97b8

View File

@ -185,7 +185,7 @@ def item_query(doctype, txt, searchfield, start, page_len, filters, as_dict=Fals
"page_len": page_len
}, as_dict=as_dict)
def bom(doctype, txt, searchfield, start, page_len, filters):
def bom(doctype, txt, searchfield, filters, start=0, page_len=20):
conditions = []
return frappe.db.sql("""select tabBOM.name, tabBOM.item