Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
3438 Visualizações

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
Cancelar
Autor Melhor resposta

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
Cancelar

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

Melhor resposta
Hello, 

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

    

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
0
set. 21
1609
1
mai. 18
2882
2
jan. 17
5908
3
mar. 15
6624
2
out. 24
1373