summaryrefslogtreecommitdiff
path: root/addons/hr_org_chart/controllers/hr_org_chart.py
diff options
context:
space:
mode:
authorChristophe Simonis <chs@odoo.com>2019-09-24 16:59:15 +0000
committerChristophe Simonis <chs@odoo.com>2019-09-24 17:45:37 +0000
commitd67b2483e5bfa5d8c1e6ef1a64fb933f5e080ad5 (patch)
tree25a7fd39ac993f3c04c5d8408beb628b3c9948ce /addons/hr_org_chart/controllers/hr_org_chart.py
parent38d8b0526f0fccc32df5a11f5d086a3522ed5fcf (diff)
parent9ed4872ea03f28012118ed48a43d0800617a84f3 (diff)
[MERGE] forward port branch saas-12.4 up to 9ed4872ea03
closes odoo/odoo#37372 Signed-off-by: Christophe Simonis <chs@odoo.com>
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]