mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-17 01:07:19 +00:00
Merge pull request #18840 from netchampfaris/missing-parent-item-group
fix: Set default Parent Item Group
This commit is contained in:
@@ -26,6 +26,10 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
||||
|
||||
def validate(self):
|
||||
super(ItemGroup, self).validate()
|
||||
|
||||
if not self.parent_item_group:
|
||||
self.parent_item_group = 'All Item Groups'
|
||||
|
||||
self.make_route()
|
||||
|
||||
def on_update(self):
|
||||
|
||||
Reference in New Issue
Block a user