Skip to Content
Menú
This question has been flagged
1 Respondre
5797 Vistes

```

<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
Descartar
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
Descartar
Related Posts Respostes Vistes Activitat
0
de febr. 21
1735
0
d’abr. 16
2314
0
d’ag. 19
2986
1
de nov. 19
9281
1
d’oct. 24
10920