mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-26 00:14:50 +00:00
[hotfix] item group set_parent_website_route
This commit is contained in:
@@ -41,9 +41,8 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
|||||||
Only set `parent_website_route` if parent is visble.
|
Only set `parent_website_route` if parent is visble.
|
||||||
|
|
||||||
e.g. If `show_in_website` is set for Products then url should be `/products`"""
|
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",
|
if self.parent_item_group and frappe.db.get_value("Item Group", self.parent_item_group, "show_in_website"):
|
||||||
self.parent_item_group, "show_in_website"):
|
WebsiteGenerator.set_parent_website_route(self)
|
||||||
super(WebsiteGenerator, self)()
|
|
||||||
else:
|
else:
|
||||||
self.parent_website_route = ""
|
self.parent_website_route = ""
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user