Merge pull request #36361 from frappe/mergify/bp/version-14-hotfix/pr-36313

fix(Item Group): allow root deletion (#36313)
This commit is contained in:
Deepesh Garg
2023-07-27 22:24:56 +05:30
committed by GitHub

View File

@@ -73,7 +73,7 @@ class ItemGroup(NestedSet, WebsiteGenerator):
return self.route
def on_trash(self):
NestedSet.on_trash(self)
NestedSet.on_trash(self, allow_root_deletion=True)
WebsiteGenerator.on_trash(self)
self.delete_child_item_groups_key()