<pto> tag not supported by RML parser

Bug #509266 reported by Borja López Soilán (NeoPolus)
18
This bug affects 3 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Released
Wishlist
Olivier Dony (Odoo)

Bug Description

Currently the RML report engine does not support the <pto> (please-turn-over) tag from ReportLab.

The ReportLab <pto> tag gives the developer a lot of flexibility when defining reports.
It lets you define how to split the page (or frame) when content overflows (i.e.: you may add a "please, turn over" or "continues on the next page" label, or a header on the next page saying something like "continued from the previous page"). When used in combination with "<nextFrame/>" it enables the developer to do complex framed page layouts, as you can define exactly which content goes on which frame. I'm including a sample PDF of what can be done using PTO.

This kind of lack has been reported more than once on the forums and mail lists (http://www.openobject.com/forum/topic6751.html?highlight=pto http://www.openobject.com/forum/topic8494.html?highlight=pto http://two.pairlist.net/pipermail/reportlab-users/2008-June/007053.html), and thought it's very useful (and it's really easy to add to the RML parser!), it has never been implemented.

Tags: pto reportlab
Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :
Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :
tags: added: pto reportlab
Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Any progress on this? Has anybody tested the patch?

Changed in openobject-server:
importance: Undecided → Wishlist
milestone: none → 5.0.9
status: New → Confirmed
Changed in openobject-server:
milestone: 5.0.9 → 5.0.10
Changed in openobject-server:
assignee: nobody → Anup (Open ERP) (ach-openerp)
status: Confirmed → In Progress
Revision history for this message
Stephane Wirtel (OpenERP) (stephane-openerp) wrote :

Anup,

This bug is a feature request, not a bug !

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Considering it as a missing feature. Shifting it to trunk.
Thanks.

Changed in openobject-server:
milestone: 5.0.10 → 6.0
Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

We confirm the patch.
Olivier, can you check,approve and proceed?
Thanks.

Changed in openobject-server:
assignee: Anup (Open ERP) (ach-openerp) → Olivier Dony (OpenERP) (odo)
Revision history for this message
Numérigraphe (numerigraphe) wrote :

Using this patch I managed to use the <pto> structure in an RML file.
Now I'd like to do this on every report.
Can <pto> be used in the company header, and at which place?
Lionel.

Revision history for this message
Borja López Soilán (NeoPolus) (borjals) wrote :

Numérigraphe: No it can't be used on the company header, only on the body (<story>...</story>) of the report :(

Revision history for this message
Jay Vora (Serpent Consulting Services) (jayvora) wrote :

Thanks everyone,
This has been fixed today.

Changed in openobject-server:
status: In Progress → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.