<span t-field="abs(line.final_balance)"/>
i Try this code but it's not run.
i want to show only positive value any solution please
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
4
Odpowiedzi
8237
Widoki
Then try with Math.abs(value),
Normally abs works fine,
eg: <span t-esc="abs(value)" />
Thank you @ Niyas Raphy.
+1
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
3
cze 20
|
9620 | ||
|
1
mar 25
|
1290 | ||
|
0
lis 24
|
1480 | ||
|
0
cze 24
|
1550 | ||
|
1
cze 24
|
2061 |
<span t-field="Math.abs(line.final_balance)"/>
but it can't
Thanks Niyas Rafhy...
it's working fine i change ...
<span t-field="Math.abs(line.final_balance)"/>
to
<span t-esc="abs(line.final_balance)"/>