Comment 4 for bug 551485

Revision history for this message
Dhara Shah (OpenERP) (dsh-openerp) wrote : Re: Reports: printing a title or reference on each page

Hi ,

It is really nice idea to print page title on every page.It is working fine, if I print report of single object.
But there is limitation of the patch.
We can print report for more than one objects,same time.Report engine process data of report first and then the page template(header/footer..etc).Thus all page will have name of last object processed as page title in case of page_title = "o.name".
So,I suggest to add "page_title" in ir.act.report or to use some combination of company and report object.
Second possible thing is to hack methods of "doctemplate" of "reportlab" to pass right "o" information to canvas on every page,to get right o.name on page.

Thanks,
Dhara