[FIX] project_long_term: scheduling of tasks should reassign only task not yet started

bzr revid: qdp-launchpad@tinyerp.com-20101230172503-58xe1zekdcwxgesi
This commit is contained in:
qdp-launchpad@tinyerp.com 2010-12-30 18:25:03 +01:00
parent 4a9f371c75
commit f8c4b4e72f
1 changed files with 1 additions and 1 deletions

View File

@ -319,7 +319,7 @@ class project_phase(osv.osv):
start_date = datetime.now().strftime("%Y-%m-%d")
resources = resources_list.get(phase.id, [])
calendar_id = phase.project_id.resource_calendar_id.id
task_ids = map(lambda x : x.id, (filter(lambda x : x.state in ['open', 'draft', 'pending'] , phase.task_ids)))
task_ids = map(lambda x : x.id, (filter(lambda x : x.state in ['draft'] , phase.task_ids))) #reassign only task not yet started
if task_ids:
task_pool.generate_schedule(cr, uid, task_ids, resources, calendar_id, start_date, context=context)