Odoo Help


Space between number in OpenOffice Report ?

on 6/17/13, 12:45 PM 1,111 views

Hi, when i have a big number(eg : 458922211,99 ), i want to display the spaces between the number (458 922 211,99). How to do that ? thanks

Ghanshyam Prajapati
On 6/18/13, 3:35 AM

Hi nailyk, In your report.py, do as per following changes,

for example,

import re
a = 458922211
b = str(a)
c = re.findall('.{%s}'%3,b)  
print "list:::",c  
d = ' '.join(c)   
print "Final Output:::",d


 list::: ['458', '922', '211']
 Final Output::: 458 922 211

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

0 follower(s)


Asked: 6/17/13, 12:45 PM
Seen: 1111 times
Last updated: 3/16/15, 8:10 AM