Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
7109 Visualizações

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
Cancelar
Autor Melhor resposta

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
Cancelar
Melhor resposta

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
Cancelar

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

Publicações relacionadas Respostas Visualizações Atividade
2
jun. 24
4717
4
mar. 22
17387
2
dez. 21
1828
0
out. 21
2985
2
dez. 19
23558