[FIX] project: project var is not defined

closes odoo/odoo#28678
This commit is contained in:
Nicolas Seinlet
2018-11-14 13:22:55 +00:00
parent 3715104e98
commit 37306b85de
+1 -1
View File
@@ -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