I would like to use t-if condition to check whether a field name (Ex.: 'Total Value') contains a string '**Total**'. I tried using:
t-if = 'Total' in a.name but it seems to check whether a.name is equal to 'Total'.
Odoo is the world's easiest all-in-one management software.
 It includes hundreds of business apps:
I would like to use t-if condition to check whether a field name (Ex.: 'Total Value') contains a string '**Total**'. I tried using:
t-if = 'Total' in a.name but it seems to check whether a.name is equal to 'Total'.
Hi,
Try it like this, it normally works 
<t t-if="'Total' in a.name">
It works, thanks :)
<t t-if="'Total' in a.name">
Correct me,If I am wrong
 Thank you
My guess is that it should probably be unicode:
<t t-if="u'Total' in a.name">
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|  | 1 helmik. 18  | 3894 | ||
|  | 0 helmik. 18  | 3809 | ||
|  | 1 heinäk. 25  | 2736 | ||
|  | 1 toukok. 25  | 3353 | ||
| 
            
                QWeb: use t-if to check birthday date
            
            
                    Ratkaistu
            
         |  | 1 huhtik. 25  | 3077 |