Picture in odoo qweb report

2019-08-13 02:12发布

问题:

I'd like show a picture in my qweb report. When I copy i.e. from the website_quote modul to my xml file this line: <img src="/website_quote/static/src/img/partner_icon_01.png"/> it works fine, but if I copy the partner_icon_01.png file to my module directory, and change the line: <img src="/my_module/static/src/img/partner_icon_01.png"/>, the picture doesn't appear in my report. Any help would be appreciated.

Cheers: Janos

回答1:

Try the following code and check

 <img class="img img-responsive" src="/sale_order_report/static/src/img/header.jpg"/>

This will working fine from my side also follow the below link

Click to See the Reference Link

I hope this should helpful for you ...! :)