Odoo Help


Background image gets cut off on the last page of a QWeb report (Odoo8)

Aleksandra Shumkoska
on 11/10/16, 10:00 AM 597 views

I want to set a background image to the Quotation/Sales Order PDF report and I used:

<div class="page" style="background-image: url('/sale/static/img/backgroundpage.png'); background-size: 230mm 300mm;">

It works for all the pages, except for the last one. The background image doesn't fill the last page of the PDF report if the content of that page is shorter. It gets cut off at the height where the content ends. The rest of the page doesn't have a background. I've tried setting the height of the <div class="page"> to 100% but it doesn't change anything. Any thoughts?

Aleksandra Shumkoska
On 12/21/16, 4:05 AM

For those who would like to know, I solved this problem by adding style="page-break-after: always;" to the last element of the page.

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: 11/10/16, 10:00 AM
Seen: 597 times
Last updated: 12/21/16, 4:05 AM