Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
4 Besvarelser
8323 Visninger
<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
Kassér
Forfatter

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

but it can't

Forfatter

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

Bedste svar

Then try with Math.abs(value),

Normally abs works fine,

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

Avatar
Kassér

Thank you @ Niyas Raphy.

+1

Related Posts Besvarelser Visninger Aktivitet
3
jun. 20
9747
1
mar. 25
1542
0
nov. 24
1639
0
jun. 24
1644
1
jun. 24
2177