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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
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:
Hope it helps
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrirePublications associées | Réponses | Vues | Activité | |
---|---|---|---|---|
|
2
mai 25
|
1085 | ||
Import from Winbooks
Résolu
|
|
4
mai 25
|
4782 | |
|
1
août 24
|
2096 | ||
|
3
oct. 23
|
10981 | ||
|
3
oct. 23
|
2602 |