Odoo Help


Page x of y in rml report (total page count)

on 11/28/13, 2:38 AM 5,850 views


I want to achieve 'page x of y' in a paragraph, so that paragraph style could be applied to these values, like:

<place x="14cm" y="20cm" height="2cm" width="5cm">
    <para style="mystyle">Page x of y</para>

The snippet below displays page number, but does not display total page count, looks like pageCount is not rendered at all:

<place x="14cm" y="20cm" height="2cm" width="5cm">
    <para style="mystyle">Page <pageNumber/> of  <pageCount/></para>

A workaround could be to display <pagecount/> by use of drawstring, but then font size cannot be changed:

<drawString x="14cm" y="20cm"><pageCount/></drawString>

Are there other options to achieve 'Page x of y'? By use of sequences maybe?

It is a bug that not fixed yet. Take a look here pageCount Bug. Maybe problem can be solved by a small patch attached there.

on 11/28/13, 2:50 AM
On 4/8/15, 4:42 AM

Try like this in your rml code


<drawCentredString x="14.0cm" y="0.6cm">Page: <pageNumber/> of </drawCentredString>

<drawCentredString x="15.0cm" y="0.6cm"><pageCount/>



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

0 follower(s)


Asked: 11/28/13, 2:38 AM
Seen: 5850 times
Last updated: 4/8/15, 4:43 AM