Picture in odoo qweb report

独自空忆成欢 提交于 2019-12-24 14:17:28

问题


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 ...! :)



来源:https://stackoverflow.com/questions/30149379/picture-in-odoo-qweb-report

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!