Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
2 Răspunsuri
7405 Vizualizări

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

Imagine profil
Abandonează
Autor Cel mai bun răspuns

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)
Imagine profil
Abandonează
Cel mai bun răspuns

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.

Imagine profil
Abandonează

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 Răspunsuri Vizualizări Activitate
0
mar. 15
3424
2
nov. 22
3891
3
apr. 25
11333
1
feb. 16
7804
1
ian. 16
4213