Added task search based on assigned user

This commit is contained in:
Shalabh Aggarwal 2012-09-24 15:19:44 +05:30
parent 7e19903bb5
commit 374ad27b56
1 changed files with 4 additions and 0 deletions

View File

@ -634,6 +634,10 @@ class Project(ModelSQL, ModelView):
if tag:
filter_domain.append(('tags', '=', tag))
user = request.args.get('user', None, int)
if user:
filter_domain.append(('assigned_to', '=', user))
counts = {}
counts['opened_tasks_count'] = self.search(
filter_domain + [('state', '=', 'opened')], count=True