Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
2 Antworten
4100 Ansichten

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
Verwerfen
Autor Beste Antwort

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
Verwerfen

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

Beste Antwort
Hello, 

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

    

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
0
Sept. 21
2309
1
Mai 18
3491
2
Jan. 17
6648
3
März 15
7378
2
Okt. 24
2082