mirror of
https://github.com/frappe/erpnext.git
synced 2026-03-02 18:14:50 +00:00
fix: update employee field on renaming employee (#25958)
This commit is contained in:
@@ -57,6 +57,9 @@ class Employee(NestedSet):
|
||||
remove_user_permission(
|
||||
"Employee", self.name, existing_user_id)
|
||||
|
||||
def after_rename(self, old, new, merge):
|
||||
self.db_set("employee", new)
|
||||
|
||||
def set_employee_name(self):
|
||||
self.employee_name = ' '.join(filter(lambda x: x, [self.first_name, self.middle_name, self.last_name]))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user