[fix] routing for item group
This commit is contained in:
parent
a2c4dad90e
commit
18357664cb
@ -38,7 +38,10 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
||||
if not self.route:
|
||||
self.route = ''
|
||||
if self.parent_item_group:
|
||||
self.route = frappe.get_doc('Item Group', self.parent_item_group).route + '/'
|
||||
parent_route = frappe.get_doc('Item Group', self.parent_item_group).route
|
||||
|
||||
if parent_route:
|
||||
self.route = parent_route + '/'
|
||||
|
||||
self.route += self.scrub(self.item_group_name)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user