Skip to content

Commit

Permalink
[FIX] project_long_term: fixed 2 errors when scheduling phases/tasks …
Browse files Browse the repository at this point in the history
…(due to previous merge on osv_memory)

bzr revid: qdp-launchpad@openerp.com-20110315150912-tofluvt1xu6wr8zt
  • Loading branch information
Quentin (OpenERP) committed Mar 15, 2011
1 parent 23b1441 commit 8dbefcf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion addons/project_long_term/wizard/project_compute_phases.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def compute_date(self, cr, uid, ids, context=None):
raise osv.except_osv(_('Error!'), _('Please Specify Project to be schedule'))

if data['project_id']: # If project mentioned find its phases
project_ids = [data['project_id']]
project_ids = [data['project_id'][0]]
else: # Else take all the draft,open,pending states phases
project_ids = project_pool.search(cr, uid, [], context=context)

Expand Down
2 changes: 1 addition & 1 deletion addons/project_long_term/wizard/project_compute_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ def compute_date(self, cr, uid, ids, context=None):
context = {}
context['compute_by'] = 'project'
data = self.read(cr, uid, ids, [])[0]
project_id = data['project_id']
project_id = data['project_id'][0]
project_pool.schedule_tasks(cr, uid, [project_id], context=context)
return self._open_task_list(cr, uid, data, context=context)

Expand Down

0 comments on commit 8dbefcf

Please sign in to comment.