Skip to Content
मेन्यू
This question has been flagged
1 Reply
5945 Views

```

<li>Blacklist: 

 <t t-if="record.blacklist.raw_value === true"> 

<img alt="Blacklist" t-att-src="'/front_office_management/static/src/img/off.png'" class="o_kanban_image "/> 

 </t> 

 <t t-if="record.blacklist.raw_value === false"> 

 <img alt="Blacklist" t-att-src="'/front_office_management/static/src/img/on.png'" class="o_kanban_image "/>

 </t>
</li>


```

image is not working is it syntax error ?


Avatar
Discard
Best Answer

Hi,


don't use t-att-src if you just want a static value.  In this case you can just use:


<img alt="Blacklist" src="/front_office_management/static/src/img/off.png" class="o_kanban_image"/> 

Also make sure that the image url is valid, so test on your devel instance the link  http://localhost:8069/front_office_management/static/src/img/off.png to make sure it works

regards,


Avatar
Discard
Related Posts Replies Views Activity
0
फ़र॰ 21
1875
0
अप्रैल 16
2412
0
अग॰ 19
3107
1
नव॰ 19
9511
1
अक्तू॰ 24
11114