Odoo Help


Display sum on every page in invoice report.

on 2/5/16, 7:06 AM 2,320 views

hiii everyone,

i have inherited account invoice report.

now i need to display total on every page and also display carryforward total on new page and at the end display whole total of invoice line.

if any one have any idea or solution please let me know.


company logo                    company address.

invoice line 1                100

invoice line 2                100

invoice line 3                100   

invoice line 4                100


         sub total:             400


invoice line 5                100

invoice line 6                100


         sub total:             600


        final total:             600                        

Thank You.


Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 2/5/16, 1:57 PM

To do that you need to determine the exact number of lines you will be displaying per page so you could do a manually page break and before that page break you could put your subtotal info.

Find how to do a page break here:


Conditional page break example for references, breaking after the line 13:

<t t-foreach="o.line_ids" t-as="line">
    <t t-if="line_index == 13">
        <div style="page-break-after: always;"><br/></div>

Thanks, but i dont know no of line. line should be 2 or 20 or more. and i also need to display subtotal in new page starting i will try your solution. thank you Axel.

on 2/8/16, 12:57 AM

You don't have to know the number of pages, you just need to know the number of lines that you are able to show on each page to be able to jump to the next page after the number of lines on every page are complete.

Axel Mendoza
on 2/8/16, 1:13 AM

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: 2/5/16, 7:06 AM
Seen: 2320 times
Last updated: 2/5/16, 1:57 PM