İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
3461 Görünümler

Hello ! 

I try to put a picture in my report but i just have the square with this position

my code <img class="image" src="image/image.png"

Thanks,

Avatar
Vazgeç
En İyi Yanıt

Hi Coco,

Judging by the code you're trying to show an image on a report which is inside your module, correct? You should also specify the name of your module in this case:

<img class="image" src="/your_module_name/image/image.png"/>


If you want to follow the official rules your image should be in /static/src/img by the way!
And just in case you want to show an image that is coming from within your database / model:

<span t-field="yourFieldName" t-field-options="{&quot;widget&quot;: &quot;image&quot;, &quot;class&quot;: &quot;img-rounded&quot;}"/


Yenthe

Avatar
Vazgeç
İlgili Gönderiler Cevaplar Görünümler Aktivite
1
Mar 15
5618
0
Mar 15
4298
1
May 22
6035
0
Haz 15
3791
1
May 15
14160