Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
2 Antwoorden
7404 Weergaven

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

Avatar
Annuleer
Auteur Beste antwoord

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)
Avatar
Annuleer
Beste antwoord

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.

Avatar
Annuleer

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 15
3423
2
nov. 22
3890
3
apr. 25
11329
1
feb. 16
7803
1
jan. 16
4208