跳至内容
菜单
此问题已终结
2 回复
4069 查看

I have used:

<img src="/module/static/src/img/image.png" class="img" style="height:25%;width:25%;"/>

in my report
it shows the image when qweb-html, but when rendering to pdf the image does not show.

形象
丢弃
编写者 最佳答案

Already fixed the problem

had use a layout.


<t t-call="web.html_container">
                    <t t-foreach="docs" t-as="doc">
<t t-call="web.internal_layout">

......

形象
丢弃

adding <t t-call="web.internal_layout"> is solving the issue, thanks

最佳答案
Hello, 

I think you have to try t-att-src instead of src

    

形象
丢弃
相关帖文 回复 查看 活动
0
9月 21
2288
1
5月 18
3454
2
1月 17
6625
3
3月 15
7364
2
10月 24
2072