Odoo Help

Welcome!

This community 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.

1

How to round a number in qweb report?

By
Abdullah Sofan
on 12/29/14, 10:11 AM 2,552 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>   

2
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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 12/29/14, 10:11 AM
Seen: 2552 times
Last updated: 3/16/15, 8:10 AM