Odoo Help


background-image in pdf report qweb

on 5/10/15, 8:08 AM 3,214 views

How i can make a backgroun image on qweb report ?

On 7/6/15, 2:21 AM

Hi Isio,

You can simply create a new div and insert an image in it. Make sure its the width & height of the page and give it a z-index. It'll work. Something along these lines:

 <div class="backgroundimage" style="position:absolute;opacity:0.25;font-size:3em;width:100%;height:100%;z-index:1000;">
        <img src="yourpath/yourfile.jpg"/>
        <!-- Or an image from the db. For example: --->
        <p t-field="o.client_order_ref"/>

I hope this gives you enough information and a general idea about how to do it. Its simply a matter of HTML and css!
Note: this is untested code, its just to give you an idea.


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: 5/10/15, 8:08 AM
Seen: 3214 times
Last updated: 7/6/15, 2:21 AM