Skip to Content
Menú
This question has been flagged
4 Respostes
8182 Vistes
<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
Avatar
Descartar
Autor

<span t-field="Math.abs(line.final_balance)"/>

but it can't

Autor

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)"/>

Best Answer

Then try with Math.abs(value),

Normally abs works fine,

eg: <span t-esc="abs(value)" />

Avatar
Descartar

Thank you @ Niyas Raphy.

+1

Related Posts Respostes Vistes Activitat
3
de juny 20
9566
1
de març 25
1231
0
de nov. 24
1448
0
de juny 24
1523
1
de juny 24
2002