Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
2 Besvarelser
7139 Visninger

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 

Avatar
Kassér
Forfatter Bedste svar

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;"/>

Avatar
Kassér
Bedste svar

Hi,

To add the product image in the reports, have a look at this module :  Product image for sale reports

This will add the product image in sale report

Thanks

Avatar
Kassér

The answer may be irrelevant for the one who asked the question, but will help the one who are looking for the same

Related Posts Besvarelser Visninger Aktivitet
2
jun. 24
4742
4
mar. 22
17459
2
dec. 21
1855
0
okt. 21
3004
2
dec. 19
23608