Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
7168 มุมมอง

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

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มิ.ย. 24
4753
4
มี.ค. 22
17498
2
ธ.ค. 21
1863
0
ต.ค. 21
3041
How to use urls as product images? แก้ไขแล้ว
2
ธ.ค. 19
23638