← Back to team overview

c2c-oerpscenario team mailing list archive

[Bug 551485] Re: Reports: printing a variable title or reference on the header/footer of an RML report

 

Please don't mark "won't fix" or community members cannot reopen the
bug.

** Tags added: feature long-term

-- 
Reports: printing a variable title or reference on the header/footer of an RML report
https://bugs.launchpad.net/bugs/551485
You received this bug notification because you are a member of C2C
OERPScenario, which is subscribed to the OpenERP Project Group.

Status in OpenObject Server: Won't Fix

Bug description:
Our users asked us to have a reference printed on each page of each document, along with the page number and total number of pages in the document.
This is important when printers are shared because pages can get mixed up when people are not careful enough.

For the moment, the best way I found for this is to
- add a small feature to report_sxw.py to get/set a page title (see patch attached)
- change the company header/footer and add : 
    <drawRightString x="19.7cm" y="28.3cm">[[pageTitle]] - <pageNumber/> /  </drawRightString>
    <drawString x="19.8cm" y="28.3cm"><pageCount/></drawString>
- in the reports they use, add something like "[[ setPageTitle(o.name) ]]" in each main repeatIn(), usually next to the setLang().

I think this is a useful generic improvement, and I would love to see it integrated in the trunk.
Lionel.