mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 09:17:15 +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):
|
||||
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.make_route()
|
||||
|
||||
Reference in New Issue
Block a user