Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
2836 Ansichten

Greetings, I need to know if in the report in Odoo Studio 17 you can somehow access the methods?

For example an image is generated with Python and I need that image to be placed in the report?

Avatar
Verwerfen
Beste Antwort

Hi,

In your inquiry, you mentioned the need to incorporate an image into a report generated via Python code. If the image is generated and stored as a file, such as SVG, you would typically store it in a field within Odoo.

In Odoo 17, there's no built-in feature to directly display images in reports like other fields. However, you can manually add an image field that displays the image stored in a field using the 'Edit Sources' feature. You can customize the XML code with:

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

For more detailed instructions on how to add an image to a report using XML, please refer to the documentation:

https://www.odoo.com/documentation/17.0/applications/productivity/studio/pdf_reports.html#editing-the-report-s-xml


Hope it helps

Avatar
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Mai 25
1023
4
Mai 25
4681
1
Aug. 24
2034
3
Okt. 23
10895
3
Okt. 23
2549