Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
2 Odpovědi
7289 Zobrazení

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

Avatar
Zrušit
Autor Nejlepší odpověď

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
Zrušit
Nejlepší odpověď

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
Zrušit

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 Odpovědi Zobrazení Aktivita
0
bře 15
3327
2
lis 22
3713
3
dub 25
11177
1
úno 16
7667
1
led 16
4049