[FIX] project: when recomputing task hours, do not search for the parents of project id False

bzr revid: rco@openerp.com-20120207113234-d0bwfam09upu7y13
This commit is contained in:
Raphael Collet
2012-02-07 12:32:34 +01:00
parent 098a5f6847
commit a68d24511c
+1 -1
View File
@@ -86,7 +86,7 @@ class project(osv.osv):
def _get_projects_from_tasks(self, cr, uid, task_ids, context=None):
tasks = self.pool.get('project.task').browse(cr, uid, task_ids, context=context)
project_ids = [task.project_id.id for task in tasks]
project_ids = [task.project_id.id for task in tasks if task.project_id]
return self.pool.get('project.project')._get_project_and_parents(cr, uid, project_ids, context)
def _get_project_and_parents(self, cr, uid, ids, context=None):