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.

1

<pageCount/> not rendering in OpenERP 7

By
semah
on 11/12/13, 9:31 AM 2,063 views

Hello,

I want to modify my invoice report footer to show the current page and the total number of pages like this :

page:1/2 in the first page and

page:2/2 in the second page...

<place x="1.3cm" y="0cm" height="1.55cm" width="19.0cm">
                <para style="main_footer">[[ company.rml_footer ]]</para>
                <para style="main_footer">Page: <pageNumber/>/<pageCount/></para>
</place>

but pageCount don't return any number .

What's the wrong ?

3
herbert6453
On 11/25/13, 11:36 AM

try drawline pageCount without text or other tags instead of inside para tag

<drawString x="4.5cm" y="27.35cm"><pageCount/></drawString>
  • pageCount is defined with fix Font Helvetica and Fix Font Size 8 in rml2pdf.py
  • but own color possible

not possible

<drawString x="4.5cm" y="27.35cm"><pageNumber/>/<pageCount/></drawString>
<para style="main_footer"><pageCount/></para>

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: 11/12/13, 9:31 AM
Seen: 2063 times
Last updated: 3/16/15, 8:10 AM