Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
3 Odpovědi
3182 Zobrazení

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.

Avatar
Zrušit
Nejlepší odpověď

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 



Avatar
Zrušit
Nejlepší odpověď

Hello @nagendra,

Try this,

<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.barcode,600, 150)" style="width:100%;height:45%;"/>

o.barcode is your barcode field

Regards,




Email: odoo@aktivsoftware.com

Skype: kalpeshmaheshwari

   

Avatar
Zrušit
Nejlepší odpověď

Hi, nagendra.

Try below, make sure it will help you.

<img t-att-src="'/report/barcode/?type=%s&amp;value=%s&amp;width=%s&amp;height=%s' % ('Code128', o.barcode,600, 150)" style="width:100%;height:45%;"/>

* here o.barcode is your barcode field technical name.

Thank you

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
3
říj 23
5891
6
říj 20
3696
0
čvc 19
5547
3
úno 22
11563
3
čvn 21
1021