Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7294 Näkymät

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

Avatar
Hylkää
Tekijä Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
0
maalisk. 15
3327
2
marrask. 22
3720
3
huhtik. 25
11183
1
helmik. 16
7670
1
tammik. 16
4050