Se rendre au contenu
Menu
Cette question a été signalée
4 Réponses
8491 Vues
<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
Ignorer
Auteur

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

but it can't

Auteur

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

Meilleure réponse

Then try with Math.abs(value),

Normally abs works fine,

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

Avatar
Ignorer

Thank you @ Niyas Raphy.

+1

Publications associées Réponses Vues Activité
3
juin 20
9958
1
mars 25
2152
0
nov. 24
2024
0
juin 24
1932
1
juin 24
2470