RML pageNumber and pageCount not rendering

Bug #1138102 reported by Max (OpenERP)
18
This bug affects 4 people
Affects Status Importance Assigned to Milestone
Odoo Server (MOVED TO GITHUB)
Fix Committed
Medium
OpenERP's Framework R&D

Bug Description

On the v7 trunk, on any generated report, the pageNumber is not rendering.

Reproduction:
1) On the version 7 runbot, give the admin user the "Technical Features" access right
2) Go to Settings > Companies > Any companies form view
3) In the header / footer tab, in the RML Header field, check that the <pageNumber /> tag is used
4) Click the "Preview header / footer" Button at the top of the record
5) Notice that no page number is rendered

The same happens for any report that is generated.
The same happens when the report is more than 1 page long.
The same happens for the pageCount tag.

description: updated
description: updated
summary: - RML header and footer pageNumber and pageCount not rendering
+ RML pageNumber and pageCount not rendering
Changed in openobject-server:
assignee: nobody → OpenERP's Framework R&D (openerp-dev-framework)
importance: Undecided → Medium
status: New → Confirmed
Revision history for this message
Josse Colpaert (OpenERP) (jco-openerp) wrote :

Apparently the pageNumber tag does not work within the <place> </place> tags. I changed the footer and it will be merged in 7.0. (opw issue)

Changed in openobject-server:
status: Confirmed → Fix Committed
Revision history for this message
Josse Colpaert (OpenERP) (jco-openerp) wrote :

I wonder if the pageCount has ever worked.

Revision history for this message
Max (OpenERP) (mmu-openerp) wrote :

Thanks for your reply. So have you fixed the issue causing the pageNumber tag not being rendered inside the place tags? Or just changed the stock footer to not put it inside place tags?

Revision history for this message
Josse Colpaert (OpenERP) (jco-openerp) wrote :

qdp merged something I think without having to change the tag and pointed out pageCount:

If you write, in your footer:
<drawCentredString x="10.5cm" y="0.8cm"><pageCount/></drawCentredString>
The total number of page will be written at the exact place chosen (here x="10.5cm" y="0.8cm", x and y start from the left-down corner). Beware that if you type:
<drawCentredString x="10.5cm" y="0.8cm">Total Pages: <pageCount/></drawCentredString>
then the <pageCount/> tag will overlap with the label 'Total Pages:' (this is because the <pageCount> is filled as a final step). So make sure to have this <pageCount/> tag alone in the <drawCentredString> tag at the coordinates you'll have chosen.

Revision history for this message
开阖软件 Jeff Wang (jeff.osbzr.com) wrote :

Really thank you Josse, your post solved my long time headache on RML report page count

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.