This question has been flagged
1 Reply
397 Views

Hello all,

I am trying to create a customer invoice report from Odoo Studio. After generating the report, the product image is not visible in the pdf. 
In the odoo studio, I cannot view the invoice lines option from which I can select the image option.

Please help me with this. If anyone has worked with odoo 17 studio, guide me on how to create customer invoice reports with images.

Thank you.

Avatar
Discard
Best Answer

Hi,

In Odoo 17, there isn't a native option to include an image field and display images in reports like other fields. However, you can manually add an image using the 'Edit Sources' feature and customize the code with:

xml

<span t-field="line.product_id.image_128" t-options-widget="image" t-options-width="64px"/>

For more detailed instructions, you can refer to the documentation:

https://www.odoo.com/documentation/17.0/applications/productivity/studio/pdf_reports.html#editing-the-report-s-xml" target="_blank">Odoo 17 Documentation - Editing the Report's XML


Hope its helps


Avatar
Discard