Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
4 Odpovědi
8214 Zobrazení
<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
Zrušit
Autor

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

but it can't

Autor

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

Nejlepší odpověď

Then try with Math.abs(value),

Normally abs works fine,

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

Avatar
Zrušit

Thank you @ Niyas Raphy.

+1

Related Posts Odpovědi Zobrazení Aktivita
3
čvn 20
9604
1
bře 25
1280
0
lis 24
1475
0
čvn 24
1547
1
čvn 24
2047