I want to display an origin ('City A') and destination ('City B') in a kanban template. These are both char fields in my model. I want to bit an arrow '→' between them but only if both are specified. This is a piece of my code:
<span>
<field name="x_quote_pickup_city"/>
<span t-if="x_quote_pickup_city != '' and x_quote_delivery_city != ''"> → </span>
<field name="x_quote_delivery_city"/>
<field name="x_quote_value"/>
</span>
The t-if doesn't seem to be working. This attempt just gives me the '→' even if the chars aren't set.
How would I go about achieving my goal here?