Odoo Help


How to get images like product or customer images on webkit/mako reports?

Carlos Contreras
on 8/29/13, 11:50 AM 2,587 views

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

Carlos Contreras
On 8/29/13, 12:02 PM

I found it:

On your mako template:

${helper.embed_image('png', object.image,50,50) | n}


helper.embed_image(image_type, object_image,width,height)
Torsten Francke
On 8/29/13, 12:19 PM

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

OpenERP Vietnam
on 8/30/13, 6:06 AM

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 8/29/13, 11:50 AM
Seen: 2587 times
Last updated: 3/16/15, 8:10 AM