Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
7121 Lượt xem

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 

Ảnh đại diện
Huỷ bỏ
Tác giả Câu trả lời hay nhấ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;"/>

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhấ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

Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 6 24
4723
4
thg 3 22
17394
2
thg 12 21
1830
0
thg 10 21
2990
2
thg 12 19
23572