Odoo Help

1

Number formatting in ReportLab ?

By
anonymous
on 9/12/13, 3:03 PM 1,342 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--
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 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.

Register

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

2 follower(s)

Stats

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