Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
7468 Переглядів

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

Аватар
Відмінити
Автор Найкраща відповідь

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)
Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити

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 Відповіді Переглядів Дія
0
бер. 15
3520
2
лист. 22
3975
3
квіт. 25
11391
1
лют. 16
7863
1
січ. 16
4256