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">
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
1
Feb 18
|
4035 | |||
|
0
Feb 18
|
3967 | |||
|
1
Jul 25
|
3010 | |||
|
1
Mei 25
|
3811 | |||
|
QWeb: use t-if to check birthday date
Diselesaikan
|
1
Apr 25
|
3290 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.