Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
5961 Weergaven

```

<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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
0
feb. 21
1888
0
apr. 16
2441
0
aug. 19
3129
1
nov. 19
9546
1
okt. 24
11146