Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
3645 มุมมอง

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,

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
1
มี.ค. 15
5618
0
มี.ค. 15
4532
1
พ.ค. 22
6250
0
มิ.ย. 15
4025
Add image field for report header แก้ไขแล้ว
1
พ.ค. 15
14439