Skip to content

Commit

Permalink
[FIX] hr_employee_firstname: replace address_home_id field by work_co…
Browse files Browse the repository at this point in the history
…ntact_id for v17

[FIX] hr_employee_firstname: replace address_home_id field by work_contact_id for v17
  • Loading branch information
DorianMAG authored and DoDoViVi committed Aug 26, 2024
1 parent 5e65f35 commit 34e8799
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 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,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")

Check warning on line 78 in hr_employee_second_lastname/models/hr_employee.py

View check run for this annotation

Codecov / codecov/patch

hr_employee_second_lastname/models/hr_employee.py#L78

Added line #L78 was not covered by tests
partners.write(
{
"firstname": employee.firstname,
Expand Down

0 comments on commit 34e8799

Please sign in to comment.