Odoo Help


v9 - How can I show a product image in a report - like the quotation or sales order pdf?

Ray Carnes
on 1/28/16, 8:08 PM 1,131 views

I'd like to be able to print the image of a product on the various pdf reports that Odoo outputs - like the Quotation/Order, the 

Ray Carnes
On 1/28/16, 8:09 PM

You can inherit and override the QWEB report report_saleorder_document and add the following line:

<img t-if="l.product_id.image_small" t-att-src="'data:image/png;base64,%s' % l.product_id.image_small" style="max-height: 45px;"/>

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

3 follower(s)


Asked: 1/28/16, 8:08 PM
Seen: 1131 times
Last updated: 4/30/16, 9:30 AM