Odoo Help


How to solve page number in Financial report always start with Page 2 ?

on 8/20/14, 7:40 AM 1,004 views

When I print Trial Balance report or financial reports, The page number always start with Page 2.


If the report has 2 page : First page displays 2/2, second page displays 1/2.

If the report has 3 page : First page displays 2/3, second page displays 3/3, third page displays 1/3.

I notice the report use RML Internal Header, but when I checked the header code, there is no line to display page number. How should I solve this problem?

RML Internal Header

<frame id="first" x1="28.0" y1="28.0" width="539" height="772"/>
<!-- Set here the default font to use for all <para> tags -->
<paraStyle name='Normal' fontName="DejaVu Sans"/>
<fill color="black"/>
<stroke color="black"/>
<setFont name="DejaVu Sans" size="8"/>
<drawString x="1.0cm" y="28.3cm"> [[ formatLang(time.strftime("%Y-%m-%d"), date=True) ]] [[ time.strftime("%H:%M") ]]</drawString>
<setFont name="DejaVu Sans Bold" size="10"/>
<drawCentredString x="11.1cm" y="28.3cm">[[ company.partner_id.name ]]</drawCentredString>
<stroke color="#000000"/>
<lines>1.0cm 28.1cm 20.1cm 28.1cm</lines>
<!-- Set here the default font to use for all <drawString> tags -->
<!-- don't forget to change the 2 other occurence of <setFont> above if needed -->
<setFont name="DejaVu Sans" size="8"/>



About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 8/20/14, 7:40 AM
Seen: 1004 times
Last updated: 3/16/15, 8:10 AM