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

Hello!


I'm trying to include a picture at the end of a PDF report. I had included it in Attachments section, but later on I don't know how to put it in the report. If I click on Embed, the code generated is not working well.


Thank you in advance

Avatar
Cancelar
Melhor resposta

Hi Marta,


i did the below mentioned steps for display the image into the qweb-pdf report.


Code:

<t t-set="base_url" t-value="request.env['ir.config_parameter'].sudo().get_param('web.base.url')"/>
<img t-att-src="'%s/your_module/static/src/img/signature.png' % base_url"
alt="Signature" width="180" height="160"/>

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jun. 21
4989
1
mai. 24
1952
0
set. 20
2861
1
ago. 25
587
1
abr. 25
1601