Odoo Help


How to round a number in qweb report?

Abdullah Sofan
on 12/29/14, 10:11 AM 4,711 views

For example, When I run this code:         <p><t t-esc="6.2/9"/></p>


I get this:                                               <p>0.688888888889</p>


How can I make it look like this:            <p>0.69</p>   

Sajin Aziz
On 12/30/14, 12:21 AM

<p><t t-esc="round(6.2/9,2)"/></p>

Thank you Sajin. Where can I find this information from????

Abdullah Sofan
on 12/30/14, 1:23 AM

You have provided me with a lot of help with many of my questions. I appreciate it. Where do you work?

Abdullah Sofan
on 12/30/14, 1:32 AM

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: 12/29/14, 10:11 AM
Seen: 4711 times
Last updated: 4/18/17, 5:28 AM