ontrash of nestedset wasn't ideal for employee's usecase (#11876)

This commit is contained in:
Zarrar 2017-12-07 17:16:59 +05:30 committed by Nabin Hait
parent 396feba874
commit 5ee5d43295

View File

@ -159,7 +159,7 @@ class Employee(NestedSet):
throw(_("Employee cannot report to himself.")) throw(_("Employee cannot report to himself."))
def on_trash(self): def on_trash(self):
super(Employee, self).on_trash() self.update_nsm_model()
delete_events(self.doctype, self.name) delete_events(self.doctype, self.name)
def validate_prefered_email(self): def validate_prefered_email(self):