Skip to content

Commit

Permalink
[17.0][FIX] hr_employee_firstname: removal of the mapped method which…
Browse files Browse the repository at this point in the history
… became useless with the address_home_id field, this no longer exists in v17 and replaced by a non-relational field (field.char) named private_street
  • Loading branch information
DorianMAG committed Jun 20, 2024
1 parent 5e65f35 commit 93429c5
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 93429c5

Please sign in to comment.