Odoo Help

1

Number formatting in ReportLab ?

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

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: 1523 times
Last updated: 3/16/15, 8:10 AM