Skip to content
Snippets Groups Projects
Commit c286e2d5 authored by Goffin Simon's avatar Goffin Simon
Browse files

[FIX] project_issue: number of issues

When no stage has been defined for a project, the new issues are
set in an undefined stage(stage_id = False). Then these issues must
be counted.

opw:676985
parent 8acfb0d7
Branches
Tags
No related merge requests found
......@@ -450,7 +450,7 @@ class project(osv.Model):
def _issue_count(self, cr, uid, ids, field_name, arg, context=None):
Issue = self.pool['project.issue']
return {
project_id: Issue.search_count(cr,uid, [('project_id', '=', project_id), ('stage_id.fold', '=', False)], context=context)
project_id: Issue.search_count(cr,uid, [('project_id', '=', project_id), '|', ('stage_id.fold', '=', False), ('stage_id', '=', False)], context=context)
for project_id in ids
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment