fix: do not cache value while creating item group, in setup wizard it will raise link validation error (#18992)

This commit is contained in:
Saurabh 2019-09-11 10:07:50 +05:30 committed by Nabin Hait
parent 358a01a226
commit e919388ee6

View File

@ -29,7 +29,7 @@ class ItemGroup(NestedSet, WebsiteGenerator):
super(ItemGroup, self).validate()
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.make_route()