[fix] paging for products (support)

This commit is contained in:
Rushabh Mehta
2016-12-19 11:51:02 +05:30
parent 43d81063f8
commit 99c814b360
8 changed files with 45 additions and 39 deletions

View File

@@ -68,7 +68,7 @@ class ItemGroup(NestedSet, WebsiteGenerator):
start = 0
context.update({
"items": get_product_list_for_group(product_group = self.name, start=start,
limit=context.page_length, search=frappe.form_dict.get("search")),
limit=context.page_length + 1, search=frappe.form_dict.get("search")),
"parent_groups": get_parent_item_groups(self.name),
"title": self.name,
"products_as_list": cint(frappe.db.get_single_value('Website Settings', 'products_as_list'))