diff --git a/erpnext/setup/doctype/item_group/item_group.py b/erpnext/setup/doctype/item_group/item_group.py index b46205c957e..dc6d2d9e722 100644 --- a/erpnext/setup/doctype/item_group/item_group.py +++ b/erpnext/setup/doctype/item_group/item_group.py @@ -41,7 +41,7 @@ class ItemGroup(NestedSet, WebsiteGenerator): self.route = frappe.get_doc('Item Group', self.parent_item_group).route + '/' self.route += self.scrub(self.item_group_name) - + return self.route def after_rename(self, olddn, newdn, merge=False): @@ -57,6 +57,8 @@ class ItemGroup(NestedSet, WebsiteGenerator): def get_context(self, context): context.show_search=True + context.search_link = '/product_search' + start = int(frappe.form_dict.start or 0) if start < 0: start = 0 diff --git a/erpnext/stock/doctype/item/item.py b/erpnext/stock/doctype/item/item.py index ea702cce411..367d1141210 100644 --- a/erpnext/stock/doctype/item/item.py +++ b/erpnext/stock/doctype/item/item.py @@ -222,6 +222,7 @@ class Item(WebsiteGenerator): def get_context(self, context): context.show_search=True + context.search_link = '/product_search' if self.variant_of: # redirect to template page! template_item = frappe.get_doc("Item", self.variant_of) diff --git a/erpnext/templates/includes/product_search_box.html b/erpnext/templates/includes/product_search_box.html deleted file mode 100644 index a135396b2f3..00000000000 --- a/erpnext/templates/includes/product_search_box.html +++ /dev/null @@ -1,28 +0,0 @@ -