コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4996 ビュー

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
5312
1
5月 24
2237
0
9月 20
3199
2
10月 25
2745
1
10月 25
369