Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odgovori
8270 Prikazi
<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
Opusti
Avtor

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

but it can't

Avtor

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
Opusti

Thank you @ Niyas Raphy.

+1

Related Posts Odgovori Prikazi Aktivnost
3
jun. 20
9664
1
mar. 25
1370
0
nov. 24
1557
0
jun. 24
1602
1
jun. 24
2117