Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions hr_employee_second_lastname/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ Authors
Contributors
------------

- Luis Escobar <lescobar@vauxoo.com>
- Hugo Adan <hugo@vauxoo.com>
- Luis Escobar <lescobar@vauxoo.com>
- Hugo Adan <hugo@vauxoo.com>

Maintainers
-----------
Expand Down
2 changes: 1 addition & 1 deletion hr_employee_second_lastname/__manifest__.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"license": "AGPL-3",
"category": "Human Resources",
"summary": "Split Name in First Name, Father's Last Name and Mother's Last Name",
"depends": ["hr_employee_firstname"],
"depends": ["hr_employee_firstname", "partner_second_lastname"],
"data": ["views/hr_views.xml"],
"post_init_hook": "post_init_hook",
"demo": [],
Expand Down
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")
partners.write(
{
"firstname": employee.firstname,
Expand Down
Loading