Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
4 Răspunsuri
8261 Vizualizări
<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
Imagine profil
Abandonează
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)"/>

Cel mai bun răspuns

Then try with Math.abs(value),

Normally abs works fine,

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

Imagine profil
Abandonează

Thank you @ Niyas Raphy.

+1

Related Posts Răspunsuri Vizualizări Activitate
3
iun. 20
9649
1
mar. 25
1364
0
nov. 24
1545
0
iun. 24
1594
1
iun. 24
2108