mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-08 15:42:52 +00:00
fix: Check in_patch before adding 'All Item Group'
This commit is contained in:
@@ -27,7 +27,7 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
|||||||
def validate(self):
|
def validate(self):
|
||||||
super(ItemGroup, self).validate()
|
super(ItemGroup, self).validate()
|
||||||
|
|
||||||
if not self.parent_item_group:
|
if not self.parent_item_group and not frappe.flags.in_test:
|
||||||
self.parent_item_group = 'All Item Groups'
|
self.parent_item_group = 'All Item Groups'
|
||||||
|
|
||||||
self.make_route()
|
self.make_route()
|
||||||
|
|||||||
Reference in New Issue
Block a user