summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPAP(OpenERP) <>2010-02-23 15:18:17 +0530
committerHDA (OpenERP) <hda@tinyerp.com>2010-02-23 15:18:17 +0530
commitfda4cb99a02bedcbfda435a025429dc473b74fa6 (patch)
tree1616f77fba88208deb9b9e405b75e4767c4062c2
parent111d3563b07c8fd0a4b52ccb5f70b78272e05489 (diff)
Fix burndown report in scrum
bzr revid: hda@tinyerp.com-20100223094817-7845noi14f0k5mlx
-rw-r--r--addons/scrum/report/_burndown.py2
-rw-r--r--addons/scrum/report/task_burndown.py4
2 files changed, 3 insertions, 3 deletions
diff --git a/addons/scrum/report/_burndown.py b/addons/scrum/report/_burndown.py
index 246a4072ecc..90235a26062 100644
--- a/addons/scrum/report/_burndown.py
+++ b/addons/scrum/report/_burndown.py
@@ -32,7 +32,7 @@ def compute_burndown(cr, uid, tasks_id, date_start, date_stop):
cr.execute('select w.date,w.hours from project_task_work w left join project_task t on (t.id=w.task_id) where t.id = ANY(%s) and t.state in (%s,%s) order by date',(tasks_id,'open','progress',))
tasks2 = cr.fetchall()
- cr.execute('select date_close,planned_hours from project_task where id =ANY(%s) and state in (%s,%s) order by date_close' ,(tasks_id,'cancelled','done',))
+ cr.execute('select date_end,planned_hours from project_task where id =ANY(%s) and state in (%s,%s) order by date_end' ,(tasks_id,'cancelled','done',))
tasks2 += cr.fetchall()
tasks2.sort()
else:
diff --git a/addons/scrum/report/task_burndown.py b/addons/scrum/report/task_burndown.py
index fe91c6eed61..36296bcee5f 100644
--- a/addons/scrum/report/task_burndown.py
+++ b/addons/scrum/report/task_burndown.py
@@ -45,7 +45,7 @@ def burndown_chart(cr, uid, tasks_id, date_start, date_stop):
cr.execute('select id,date_start,state,planned_hours from project_task where id = ANY(%s) order by date_start'(tasks_id,))
tasks = cr.fetchall()
- cr.execute('select id,date_close,state,planned_hours*progress/100 from project_task where id =ANY(%s) and state in (%s,%s) order by date_close', (tasks_id,'progress','done',))
+ cr.execute('select id,date_end,state,planned_hours*progress/100 from project_task where id =ANY(%s) and state in (%s,%s) order by date_end', (tasks_id,'progress','done',))
tasks2 = cr.fetchall()
current_date = date_start
total = 0
@@ -79,7 +79,7 @@ class report_tasks(report_int):
else:
datas['date_start'] = time.strftime('%Y-%m-%d')
if 'date_stop' not in datas:
- cr.execute('select max(date_start),max(date_close) from project_task where id = ANY(%s)',(ids,))
+ cr.execute('select max(date_start),max(date_end) from project_task where id = ANY(%s)',(ids,))
res = cr.fetchone()
datas['date_stop'] = (res[0] and res[0][:10]) or time.strftime('%Y-%m-%d')
if res[1] and datas['date_stop']<res[1]: