mirror of
https://github.com/frappe/erpnext.git
synced 2026-05-31 10:49:09 +00:00
Merge pull request #36313 from barredterra/delete-root-item-group
fix(Item Group): allow root deletion
This commit is contained in:
@@ -73,7 +73,7 @@ class ItemGroup(NestedSet, WebsiteGenerator):
|
|||||||
return self.route
|
return self.route
|
||||||
|
|
||||||
def on_trash(self):
|
def on_trash(self):
|
||||||
NestedSet.on_trash(self)
|
NestedSet.on_trash(self, allow_root_deletion=True)
|
||||||
WebsiteGenerator.on_trash(self)
|
WebsiteGenerator.on_trash(self)
|
||||||
self.delete_child_item_groups_key()
|
self.delete_child_item_groups_key()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user