diff --git a/hr_employee_second_lastname/models/hr_employee.py b/hr_employee_second_lastname/models/hr_employee.py index edf085ccdda..5a1ce0c9068 100644 --- a/hr_employee_second_lastname/models/hr_employee.py +++ b/hr_employee_second_lastname/models/hr_employee.py @@ -75,7 +75,7 @@ def _prepare_vals_on_write_firstname_lastname(self, vals): 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,