mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-23 23:19:20 +00:00
fix: Set default Parent Item Group
This commit is contained in:
@@ -26,6 +26,10 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
|||||||
|
|
||||||
def validate(self):
|
def validate(self):
|
||||||
super(ItemGroup, self).validate()
|
super(ItemGroup, self).validate()
|
||||||
|
|
||||||
|
if not self.parent_item_group:
|
||||||
|
self.parent_item_group = 'All Item Groups'
|
||||||
|
|
||||||
self.make_route()
|
self.make_route()
|
||||||
|
|
||||||
def on_update(self):
|
def on_update(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user