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

Number formatting in ReportLab ?

By
anonymous
on 9/12/13, 3:03 PM 1,303 views

Hi,

I create a report based a sql query. i want display all number in format : three digits after comma.

For example :

result of sql query salary=500.3

i want display in report PDF : 500.300

Thanks.

1

saad

--saad--
1008
| 5 4 8
Casablanca, Morocco
--saad--
saad
On 9/13/13, 6:27 AM

Hi,

You can use: [[ '%0.4f' % result ]]

Thankyou very match. works now . Any doc about this formatting?

anonymous
on 9/13/13, 6:51 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

2 follower(s)

Stats

Asked: 9/12/13, 3:03 PM
Seen: 1303 times
Last updated: 3/16/15, 8:10 AM