diff --git a/hr_employee_firstname/models/hr_employee.py b/hr_employee_firstname/models/hr_employee.py index 05d859eb7c8..8c7bba90e2b 100644 --- a/hr_employee_firstname/models/hr_employee.py +++ b/hr_employee_firstname/models/hr_employee.py @@ -9,7 +9,7 @@ _logger = logging.getLogger(__name__) -UPDATE_PARTNER_FIELDS = ["firstname", "lastname", "user_id", "address_home_id"] +UPDATE_PARTNER_FIELDS = ["firstname", "lastname", "user_id", "private_street"] class HrEmployee(models.Model): @@ -168,7 +168,7 @@ def _install_employee_firstname(self): def _update_partner_firstname(self): for employee in self: partners = employee.mapped("user_id.partner_id") - partners |= employee.mapped("address_home_id") + partners |= employee.mapped("work_contact_id") partners.write( {"firstname": employee.firstname, "lastname": employee.lastname} )