Odoo Help

0

background-image in pdf report qweb

By
isio-odoo
on 5/10/15, 8:08 AM 3,214 views


How i can make a backgroun image on qweb report ?


2
Yenthe
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"/>
 </div>

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.

Yenthe

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.

Register

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)

Stats

Asked: 5/10/15, 8:08 AM
Seen: 3214 times
Last updated: 7/6/15, 2:21 AM