Odoo Help


Convert Value in Positive?

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

Odoo Techno Functionalist @ Cybrosys Techno Solutions

Graduation : B-Tech in Computer Science & Engineering from Calicut University (2012 - 2016)

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: 262 times
Last updated: 7/28/17, 9:07 AM