跳至内容
菜单
此问题已终结
2 回复
7401 查看

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
3423
2
11月 22
3887
3
4月 25
11326
1
2月 16
7799
1
1月 16
4203