[IMP] improvement in burndown chart computation for companies not using the planned/remaining hours

bzr revid: fp@tinyerp.com-20120521142513-8hnu35e2nbkh8f5d
This commit is contained in:
Fabien Pinckaers 2012-05-21 16:25:13 +02:00
parent 70a1ed47d3
commit 9e165e6dae
1 changed files with 1 additions and 1 deletions

View File

@ -1335,7 +1335,7 @@ class project_task_history_cumulative(osv.osv):
id as history_id,
date+generate_series(0, CAST((coalesce(end_date,DATE 'tomorrow')::date - date)AS integer)-1) as date,
task_id, type_id, user_id, kanban_state, state,
remaining_hours, planned_hours
greatest(remaining_hours,1) as remaining_hours, greatest(planned_hours,1) as planned_hours
FROM
project_task_history
) as history