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

If i have a module with an image, how to embed an image from my field on module to webkit pdf.

アバター
破棄
著作者 最善の回答

I found it:

On your mako template:

${helper.embed_image('png', object.image,50,50) | n}

Where

helper.embed_image(image_type, object_image,width,height)
アバター
破棄
最善の回答

We use in sale_order:

<img src="data:image/png;base64,${line.product_id.image}" />

But than you must sure that all product images are png.

アバター
破棄

In some case, if you want to add fixed image, I will use base64 module to encode, decode this image and insert it into report

関連投稿 返信 ビュー 活動
0
3月 15
3494
2
11月 22
3953
3
4月 25
11374
1
2月 16
7851
1
1月 16
4246