Odoo Help

Welcome!

This community 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.

0

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

By
Panida
on 8/20/14, 7:40 AM 676 views

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

Example:

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

<header>
<pageTemplate>
<frame id="first" x1="28.0" y1="28.0" width="539" height="772"/>
<stylesheet>
<!-- Set here the default font to use for all <para> tags -->
<paraStyle name='Normal' fontName="DejaVu Sans"/>
</stylesheet>
<pageGraphics>
<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"/>
</pageGraphics>
</pageTemplate>
</header>

 

 

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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