İçereği Atla
Menü
Bu soru işaretlendi
2 Cevaplar
7384 Görünümler

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
Vazgeç
Üretici En İyi Yanıt

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
Vazgeç
En İyi Yanıt

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
Vazgeç

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
2
Eyl 25
4923
4
Mar 22
17870
2
Ara 21
2053
0
Eki 21
3287
2
Ara 19
23939