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 :)
| 관련 게시물 | 답글 | 화면 | 활동 | |
|---|---|---|---|---|
|
1
2월 18
|
4028 | |||
|
0
2월 18
|
3960 | |||
|
1
7월 25
|
3007 | |||
|
1
5월 25
|
3800 | |||
|
1
4월 25
|
3287 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.