Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
4077 Widoki

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.

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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

......

Awatar
Odrzuć

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

Najlepsza odpowiedź
Hello, 

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

    

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
0
wrz 21
2294
1
maj 18
3458
2
sty 17
6628
3
mar 15
7364
2
paź 24
2074