[IMP]:scrum,mrp:added report header title.
authorapa-tiny <apa@tinyerp.com>
Thu, 11 Nov 2010 12:10:03 +0000 (17:40 +0530)
committerapa-tiny <apa@tinyerp.com>
Thu, 11 Nov 2010 12:10:03 +0000 (17:40 +0530)
bzr revid: apa@tinyerp.com-20101111121003-1mgekf1g7oj1siu6

addons/mrp/report/workcenter_load.py
addons/project_scrum/report/sprint_burndown.py

index 42cb750..9be42ed 100644 (file)
@@ -131,11 +131,9 @@ class report_custom(report_int):
         else:
             y_label = "Load (Hours)"
 
-
         # For add the report header on the top of the report.
         tb = text_box.T(loc=(300, 500), text="/hL/15/bWork Centers Load", line_style=None)
         tb.draw()
-
         ar = area.T(legend = legend.T(),
                     x_grid_style = line_style.gray70_dash1,
                     x_axis = axis.X(label="Periods", format="/a90/hC%s"),
index f22082f..64a6087 100644 (file)
@@ -44,6 +44,9 @@ class report_tasks(report_int):
         pool = pooler.get_pool(cr.dbname)
         sprint_pool = pool.get('project.scrum.sprint')
         task_pool = pool.get('project.task')
+        # For add the report header on the top of the report.
+        tb = text_box.T(loc=(320, 500), text="/hL/15/bBurndown Chart", line_style=None)
+        tb.draw()
         int_to_date = lambda x: '/a60{}' + datetime(time.localtime(x).tm_year, time.localtime(x).tm_mon, time.localtime(x).tm_mday).strftime('%d %m %Y')
         for sprint in sprint_pool.browse(cr, uid, ids, context=context):
             task_ids = task_pool.search(cr, uid, [('sprint_id','=',sprint.id)], context=context)