Skip to content

Commit

Permalink
17.0-fix-hr_employee_lastname: removed useless mapped address_home_id
Browse files Browse the repository at this point in the history
  • Loading branch information
DorianMAG committed Jun 19, 2024
1 parent 5e65f35 commit 3364a66
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion hr_employee_second_lastname/models/hr_employee.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ 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.write(
{
"firstname": employee.firstname,
Expand Down

0 comments on commit 3364a66

Please sign in to comment.