Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
7387 Widoki

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

Awatar
Odrzuć
Autor Najlepsza odpowiedź

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)
Awatar
Odrzuć
Najlepsza odpowiedź

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.

Awatar
Odrzuć

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

Powiązane posty Odpowiedzi Widoki Czynność
0
mar 15
3415
2
lis 22
3831
3
kwi 25
11287
1
lut 16
7778
1
sty 16
4151