Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
4821 Tampilan

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
Buang
Jawaban Terbai

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
Buang
Post Terkait Replies Tampilan Aktivitas
1
Jun 21
5149
1
Mei 24
2081
0
Sep 20
3010
1
Agu 25
839
1
Apr 25
1749