Skip to content

Commit

Permalink
[FIX] hr_employee_second_lastname: removed useless mapped address_hom…
Browse files Browse the repository at this point in the history
…e_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
  • Loading branch information
DorianMAG committed Nov 22, 2024
1 parent 7385af7 commit b6c9dfd
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 b6c9dfd

Please sign in to comment.