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 :)
My guess is that it should probably be unicode:
<t t-if="u'Total' in a.name">
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
1
февр. 18
|
4032 | |||
|
0
февр. 18
|
3963 | |||
|
1
июл. 25
|
3010 | |||
|
1
мая 25
|
3806 | |||
|
1
апр. 25
|
3289 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.