From b6c9dfdc3eee6258068fa5ae1feaa9e662a73204 Mon Sep 17 00:00:00 2001 From: DoDo Date: Wed, 19 Jun 2024 13:52:25 +0200 Subject: [PATCH] [FIX] hr_employee_second_lastname: removed useless mapped address_home_id Remove useless mapped. The source code has changed in OCB/OdooSA. The relational field no longer exists on the address in V17. https://github.com/OCA/OCB/blob/3afef8250c829406a8fd227a6bd9f71c4f80ff29/addons/hr/models/hr_employee.py#L49 --- hr_employee_second_lastname/models/hr_employee.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,