Skip to Content
Menu
This question has been flagged
2 Replies
4681 Rodiniai

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

Portretas
Atmesti
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"/>

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
birž. 21
5004
1
geg. 24
1958
0
rugs. 20
2863
1
rugp. 25
596
1
bal. 25
1602