[IMP]:scrum,mrp:added report header title.

bzr revid: apa@tinyerp.com-20101111121003-1mgekf1g7oj1siu6
This commit is contained in:
apa-tiny
2010-11-11 17:40:03 +05:30
parent b3b3e933df
commit 62cb2f3594
2 changed files with 3 additions and 2 deletions
-2
View 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"),
@@ -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)