From 9e165e6dae78eda72e40f3d12f152a5c232e824c Mon Sep 17 00:00:00 2001 From: Fabien Pinckaers Date: Mon, 21 May 2012 16:25:13 +0200 Subject: [PATCH] [IMP] improvement in burndown chart computation for companies not using the planned/remaining hours bzr revid: fp@tinyerp.com-20120521142513-8hnu35e2nbkh8f5d --- addons/project/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/project/project.py b/addons/project/project.py index 7c8b3462668..7f4e104db81 100644 --- a/addons/project/project.py +++ b/addons/project/project.py @@ -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