ontrash of nestedset wasn't ideal for employee's usecase (#11876)
This commit is contained in:
parent
396feba874
commit
5ee5d43295
@ -159,7 +159,7 @@ class Employee(NestedSet):
|
||||
throw(_("Employee cannot report to himself."))
|
||||
|
||||
def on_trash(self):
|
||||
super(Employee, self).on_trash()
|
||||
self.update_nsm_model()
|
||||
delete_events(self.doctype, self.name)
|
||||
|
||||
def validate_prefered_email(self):
|
||||
|
Loading…
Reference in New Issue
Block a user