Merge pull request #9757 from mbauskar/breadcrumb-fixes
[hotfix] check if the item group exist or not
This commit is contained in:
commit
68ed0488a3
@ -147,6 +147,7 @@ def invalidate_cache_for(doc, item_group=None):
|
||||
item_group = doc.name
|
||||
|
||||
for d in get_parent_item_groups(item_group):
|
||||
d = frappe.get_doc("Item Group", d.name)
|
||||
if frappe.db.exists("Item Group", d.get("name")):
|
||||
d = frappe.get_doc("Item Group", d.get("name"))
|
||||
if d.route:
|
||||
clear_cache(d.route)
|
||||
|
Loading…
x
Reference in New Issue
Block a user