From e919388ee69a7b1e23321ccfbf094f1a181039b5 Mon Sep 17 00:00:00 2001 From: Saurabh Date: Wed, 11 Sep 2019 10:07:50 +0530 Subject: [PATCH] fix: do not cache value while creating item group, in setup wizard it will raise link validation error (#18992) --- erpnext/setup/doctype/item_group/item_group.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/erpnext/setup/doctype/item_group/item_group.py b/erpnext/setup/doctype/item_group/item_group.py index b309b504e0..5603f17a54 100644 --- a/erpnext/setup/doctype/item_group/item_group.py +++ b/erpnext/setup/doctype/item_group/item_group.py @@ -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()