def on_trash(self): # clear from child table (sub procedures) frappe.db.sql( """update `tabQuality Procedure Process` set `procedure`='' where `procedure`=%s""", self.name, ) NestedSet.on_trash(self, allow_root_deletion=True)
def on_trash(self): NestedSet.on_trash(self) WebsiteGenerator.on_trash(self)
def on_trash(self): NestedSet.on_trash(self) WebsiteGenerator.on_trash(self) self.delete_child_item_groups_key()