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
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
2
thg 5 25
|
1544 | ||
Import from Winbooks
Đã xử lý
|
|
4
thg 5 25
|
5309 | |
|
1
thg 8 24
|
2530 | ||
|
3
thg 10 23
|
11316 | ||
|
3
thg 10 23
|
2851 |