Skip to Content
Menú
This question has been flagged
2 Respostes
4673 Vistes

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
Descartar
Best Answer

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
Descartar
Related Posts Respostes Vistes Activitat
1
de juny 21
4991
1
de maig 24
1955
0
de set. 20
2861
1
d’ag. 25
590
1
d’abr. 25
1602