跳至內容
選單
此問題已被標幟
2 回覆
3614 瀏覽次數

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
1766
1
5月 18
3072
2
1月 17
6122
3
3月 15
7009
2
10月 24
1629