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.py2
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 a82d9002d33..4a8fb029dda 100644
--- a/addons/hr_org_chart/controllers/hr_org_chart.py
+++ b/addons/hr_org_chart/controllers/hr_org_chart.py
@@ -17,7 +17,7 @@ class HrOrgChartController(http.Controller):
if ('context' in kw and 'allowed_company_ids' in kw['context']):
cids = kw['context']['allowed_company_ids']
else:
- cids = [request.env.company_id.id]
+ cids = [request.env.company.id]
Employee = request.env['hr.employee'].with_context(allowed_company_ids=cids)
# check and raise