Odoo Help

0

Convert Value in Positive?

By
Usman Farzand
on 7/24/17, 6:48 AM 211 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

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

but it can't

Usman Farzand
on 7/25/17, 2:23 AM

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

Usman Farzand
on 7/25/17, 2:30 AM
1
Niyas Raphy
On 7/28/17, 9:06 AM

Then try with Math.abs(value),

Normally abs works fine,

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

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 7/24/17, 6:48 AM
Seen: 211 times
Last updated: 7/28/17, 9:07 AM