From 4a6a5a6e75862a8d2f45a2ad9c4052915a9b2d08 Mon Sep 17 00:00:00 2001 From: DoDo Date: Wed, 19 Jun 2024 13:37:58 +0200 Subject: [PATCH] 17.0-fix-hr_employee_firstname: removed useless mapped address_home_id --- hr_employee_firstname/models/hr_employee.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hr_employee_firstname/models/hr_employee.py b/hr_employee_firstname/models/hr_employee.py index 05d859eb7c8..c36020954e2 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,6 @@ 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.write( {"firstname": employee.firstname, "lastname": employee.lastname} )