From 63ea99e929d057e67675c2f2a0171c27d7a60c67 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 16 Apr 2015 20:45:54 -0400 Subject: [PATCH] [hotfix] item group set_parent_website_route --- erpnext/setup/doctype/item_group/item_group.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/erpnext/setup/doctype/item_group/item_group.py b/erpnext/setup/doctype/item_group/item_group.py index aea3670ca2..831095d652 100644 --- a/erpnext/setup/doctype/item_group/item_group.py +++ b/erpnext/setup/doctype/item_group/item_group.py @@ -41,9 +41,8 @@ class ItemGroup(NestedSet, WebsiteGenerator): Only set `parent_website_route` if parent is visble. e.g. If `show_in_website` is set for Products then url should be `/products`""" - if self.parent_item_group and frappe.db.get_value("Item Group", - self.parent_item_group, "show_in_website"): - super(WebsiteGenerator, self)() + if self.parent_item_group and frappe.db.get_value("Item Group", self.parent_item_group, "show_in_website"): + WebsiteGenerator.set_parent_website_route(self) else: self.parent_website_route = ""