跳至內容
選單
此問題已被標幟
2 回覆
7107 瀏覽次數

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 

頭像
捨棄
作者 最佳答案

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

頭像
捨棄
最佳答案

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

頭像
捨棄

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

相關帖文 回覆 瀏覽次數 活動
2
6月 24
4716
4
3月 22
17386
2
12月 21
1828
0
10月 21
2983
2
12月 19
23557