Skip to Content
मेन्यू
This question has been flagged
4 Replies
8200 Views
<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
Discard
Author

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

but it can't

Author

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
Discard

Thank you @ Niyas Raphy.

+1

Related Posts Replies Views Activity
3
जून 20
9593
1
मार्च 25
1258
0
नव॰ 24
1464
0
जून 24
1540
1
जून 24
2025