Skip to content
Snippets Groups Projects
Commit 6e150ee1 authored by jbm-odoo's avatar jbm-odoo
Browse files

[FIX] hr_org_chart: Avoid write on employee just by loading the view


Before this commit:
When loading a employee form, a write is done due to hr_org_chart

After this commit:
No write should be performed

closes odoo/odoo#41958

Taskid: 2150314
Signed-off-by: default avatarYannick Tivisse (yti) <yti@odoo.com>
parent 28b6e9c9
Branches
Tags
No related merge requests found
......@@ -28,7 +28,6 @@ class HrEmployeeBase(models.AbstractModel):
direct_subordinates = self.child_ids - parents
for child in direct_subordinates:
child_subordinate = child._get_subordinates(parents=parents)
child.subordinate_ids = child_subordinate
indirect_subordinates |= child_subordinate
return indirect_subordinates | direct_subordinates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment