图片在odoo qweb报道 [英] Picture in odoo qweb report

查看:167
本文介绍了图片在odoo qweb报道的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在qweb报告中显示图片。
当我从网站_quote modul复制ie到我的xml文件时,这一行:
< img src =/ website_quote / static / src / img / partner_icon_01.png/> ;
它工作正常,但如果我将partner_icon_01.png文件复制到我的模块目录,并更改行:
< img src = /my_module/static/src/img/partner_icon_01.png/> ,图片未出现在我的报告中。
任何帮助都将不胜感激。

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.

干杯:Janos

推荐答案

试试以下代码和检查

 <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

点击查看参考链接

我希望这对你有帮助......! :)

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

这篇关于图片在odoo qweb报道的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆