Hello
I need to display a static image that links a field called "img_bc", this type of field has to be filled in by users, and I need to display an image with a small tail on the report Qweb printing
pls i need code which indicate on xml
THANKS
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hello
I need to display a static image that links a field called "img_bc", this type of field has to be filled in by users, and I need to display an image with a small tail on the report Qweb printing
pls i need code which indicate on xml
THANKS
Hi,
You can either use img tag in report to add the image to report pdf.
<img src='/module_name/static/src/
Or
You can span the field containing the image in the report pdf.
<span t-field="line.image" t-options='{"widget": "image"}'/>
Or
Add the image source dynamically.
<img t-if="company.logo" t-att-src="image_data_uri(
View similar forum post before
https://www.odoo.com/forum/help-1/question/display-image-in-qweb-report-76746" target="_blank">https://www.odoo.com/forum/
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 | |
---|---|---|---|---|
|
3
thg 5 22
|
2350 | ||
|
2
thg 12 24
|
9297 | ||
|
0
thg 11 23
|
3555 | ||
t-att-href url get error
Đã xử lý
|
|
2
thg 4 23
|
8656 | |
|
1
thg 10 22
|
6461 |