跳至內容
選單
此問題已被標幟
2 回覆
4605 瀏覽次數

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
1
6月 21
4885
1
5月 24
1905
0
9月 20
2801
1
8月 25
499
1
4月 25
1519