İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
4089 Görünümler

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.

Avatar
Vazgeç
Üretici En İyi Yanıt

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">

......

Avatar
Vazgeç

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

En İyi Yanıt
Hello, 

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

    

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Eyl 21
2297
1
May 18
3462
2
Oca 17
6639
3
Mar 15
7368
2
Eki 24
2075