Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
4684 Visualizzazioni

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
Abbandona
Risposta migliore

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
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 21
5004
1
mag 24
1961
0
set 20
2863
1
ago 25
599
1
apr 25
1603