Skip to Content
Menu
This question has been flagged
2 Replies
7635 Rodiniai

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

Portretas
Atmesti
Autorius Best Answer

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)
Portretas
Atmesti
Best Answer

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.

Portretas
Atmesti

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

Related Posts Replies Rodiniai Veikla
0
kov. 15
3704
2
lapkr. 22
4299
3
bal. 25
11586
1
vas. 16
8140
1
saus. 16
4458