Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
4613 มุมมอง

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

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Hi,

Please refer to this link

https://www.odoo.com/forum/help-1/how-to-add-images-in-the-pdf-reports-163920

https://www.odoo.com/forum/help-1/question/display-image-in-qweb-report-76746 

Thanks

Muhammed Ali M - iWesabe

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มิ.ย. 21
4899
1
พ.ค. 24
1913
0
ก.ย. 20
2821
1
ส.ค. 25
507
1
เม.ย. 25
1523