fix: do not cache value while creating item group, in setup wizard it will raise link validation error (#18992)
This commit is contained in:
parent
358a01a226
commit
e919388ee6
@ -29,7 +29,7 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
|||||||
super(ItemGroup, self).validate()
|
super(ItemGroup, self).validate()
|
||||||
|
|
||||||
if not self.parent_item_group and not frappe.flags.in_test:
|
if not self.parent_item_group and not frappe.flags.in_test:
|
||||||
if frappe.db.exists("Item Group", _('All Item Groups'), cache=True):
|
if frappe.db.exists("Item Group", _('All Item Groups')):
|
||||||
self.parent_item_group = _('All Item Groups')
|
self.parent_item_group = _('All Item Groups')
|
||||||
|
|
||||||
self.make_route()
|
self.make_route()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user