summaryrefslogtreecommitdiff
path: root/addons/project/controllers
diff options
context:
space:
mode:
authorNicolas Seinlet <nse@openerp.com>2018-11-14 13:22:55 +0000
committerNicolas Seinlet <nse@openerp.com>2018-11-14 13:22:55 +0000
commit37306b85def6df650bcfa70f4b1fe638e71ea7f4 (patch)
tree7f67999857775b5923f9290cb10a18551989886c /addons/project/controllers
parent3715104e987beb125cb54ba27ccb4bb06148937a (diff)
[FIX] project: project var is not defined
closes odoo/odoo#28678
Diffstat (limited to 'addons/project/controllers')
-rw-r--r--addons/project/controllers/portal.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/project/controllers/portal.py b/addons/project/controllers/portal.py
index 03830451911..72636feea62 100644
--- a/addons/project/controllers/portal.py
+++ b/addons/project/controllers/portal.py
@@ -131,7 +131,7 @@ class CustomerPortal(CustomerPortal):
# extends filterby criteria with project (criteria name is the project id)
# Note: portal users can't view projects they don't follow
- project_groups = request.env['project.task'].read_group([('project_id', 'not in', project.ids)],
+ project_groups = request.env['project.task'].read_group([('project_id', 'not in', projects.ids)],
['project_id'], ['project_id'])
for group in project_groups:
proj_id = group['project_id'][0] if group['project_id'] else False