Odoo Help


Convert Value in Positive?

Usman Farzand
on 7/24/17, 6:48 AM 479 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)"/>


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

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

Niyas Raphy

--Niyas Raphy--
| 5 6 9
Calicut, India
--Niyas Raphy--

Odoo Techno Functionalist

Feel free to contact :  niyasraphyk@gmail.com

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.


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)


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