Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
4 Antwoorden
8260 Weergaven
<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
Annuleer
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)"/>

Beste antwoord

Then try with Math.abs(value),

Normally abs works fine,

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

Avatar
Annuleer

Thank you @ Niyas Raphy.

+1

Gerelateerde posts Antwoorden Weergaven Activiteit
3
jun. 20
9648
1
mrt. 25
1364
0
nov. 24
1543
0
jun. 24
1591
1
jun. 24
2106