Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
2 Vastaukset
7150 Näkymät

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
Hylkää
Tekijä Paras vastaus

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
Hylkää
Paras vastaus

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
Hylkää

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

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
kesäk. 24
4750
4
maalisk. 22
17482
2
jouluk. 21
1861
0
lokak. 21
3030
2
jouluk. 19
23626