Se rendre au contenu
Menu
Cette question a été signalée
2 Réponses
7449 Vues

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

Avatar
Ignorer
Auteur Meilleure réponse

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
Ignorer
Meilleure réponse

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
Ignorer

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

Publications associées Réponses Vues Activité
0
mars 15
3493
2
nov. 22
3953
3
avr. 25
11372
1
févr. 16
7850
1
janv. 16
4246