i want to display a only image in qweb page.I used this code <img src="/quality_modification/static/src/img/ag1.png" style="height:45%;width:100%;"/> in version 12.
I want to display a barcode image with in the static folder.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
i want to display a only image in qweb page.I used this code <img src="/quality_modification/static/src/img/ag1.png" style="height:45%;width:100%;"/> in version 12.
I want to display a barcode image with in the static folder.
agendra,
Please try this code,
<img class="img" src="/your_module/static/src/img/your_image.png" style="height:45%;width:100%;" />
Thanks !!!
Aswini @ iWesabe
Hello @nagendra,
Try this,
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.barcode,600, 150)" style="width:100%;height:45%;"/>
o.barcode is your barcode field
Regards,
Email: odoo@aktivsoftware.com
Hi, nagendra.
Try below, make sure it will help you.
<img t-att-src="'/report/barcode/?type=%s&value=%s&width=%s&height=%s' % ('Code128', o.barcode,600, 150)" style="width:100%;height:45%;"/>
* here o.barcode is your barcode field technical name.
Thank you
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 10 23
|
5985 | ||
|
6
thg 10 20
|
3766 | ||
|
0
thg 7 19
|
5653 | ||
API Calling form Odoo Function - V12
Đã xử lý
|
|
3
thg 2 22
|
11681 | |
|
3
thg 6 21
|
1021 |