summaryrefslogtreecommitdiff
path: root/addons/hr_org_chart/controllers/hr_org_chart.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/hr_org_chart/controllers/hr_org_chart.py')
-rw-r--r--addons/hr_org_chart/controllers/hr_org_chart.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/hr_org_chart/controllers/hr_org_chart.py b/addons/hr_org_chart/controllers/hr_org_chart.py
index 8df4c81ae40..f9160767995 100644
--- a/addons/hr_org_chart/controllers/hr_org_chart.py
+++ b/addons/hr_org_chart/controllers/hr_org_chart.py
@@ -14,8 +14,8 @@ class HrOrgChartController(http.Controller):
return None
employee_id = int(employee_id)
- if ('context' in kw and 'allowed_company_ids' in kw['context']):
- cids = kw['context']['allowed_company_ids']
+ if 'allowed_company_ids' in request.env.context:
+ cids = request.env.context['allowed_company_ids']
else:
cids = [request.env.company.id]