コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4063 ビュー

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
2284
1
5月 18
3450
2
1月 17
6623
3
3月 15
7362
2
10月 24
2070