diff options
Diffstat (limited to 'addons/hr_org_chart/controllers/hr_org_chart.py')
| -rw-r--r-- | addons/hr_org_chart/controllers/hr_org_chart.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/hr_org_chart/controllers/hr_org_chart.py b/addons/hr_org_chart/controllers/hr_org_chart.py index 20f1c30047a..8b60bff0c7e 100644 --- a/addons/hr_org_chart/controllers/hr_org_chart.py +++ b/addons/hr_org_chart/controllers/hr_org_chart.py @@ -45,7 +45,7 @@ class HrOrgChartController(http.Controller): return {} # compute employee data for org chart - ancestors, current = request.env['hr.employee'], employee + ancestors, current = request.env['hr.employee'].sudo(), employee.sudo() while current.parent_id and len(ancestors) < self._managers_level+1: ancestors += current.parent_id current = current.parent_id |
