Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
2 Risposte
7457 Visualizzazioni

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

Avatar
Abbandona
Autore Risposta migliore

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
Abbandona
Risposta migliore

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
Abbandona

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

Post correlati Risposte Visualizzazioni Attività
0
mar 15
3510
2
nov 22
3965
3
apr 25
11381
1
feb 16
7856
1
gen 16
4249