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
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
AanmeldenGerelateerde posts | Antwoorden | Weergaven | Activiteit | |
---|---|---|---|---|
|
3
okt. 23
|
5939 | ||
|
6
okt. 20
|
3717 | ||
|
0
jul. 19
|
5574 | ||
API Calling form Odoo Function - V12
Opgelost
|
|
3
feb. 22
|
11585 | |
|
3
jun. 21
|
1021 |