This commit is contained in:
Shreya Shah 2018-04-13 19:33:40 +05:30 committed by Nabin Hait
parent 6bf4e5b73b
commit a952e40b56

View File

@ -18,7 +18,7 @@ class Department(NestedSet):
def on_trash(self): def on_trash(self):
super(Department, self).on_trash() super(Department, self).on_trash()
delete_events(self.doctype, self.name) delete_events(self.doctype, self.name)
def on_doctype_update(): def on_doctype_update():
frappe.db.add_index("Department", ["lft", "rgt"]) frappe.db.add_index("Department", ["lft", "rgt"])