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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухоблік
- Склад
- PoS
- Проект
- MRP
Це запитання позначене
1
Відповісти
4282
Переглядів
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
Output,
list::: ['458', '922', '211']
Final Output::: 458 922 211
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Реєстрація| Related Posts | Відповіді | Переглядів | Дія | |
|---|---|---|---|---|
|
|
1
бер. 15
|
6304 | ||
|
repeatin error on empty list
Вирішено
|
|
2
груд. 22
|
7614 | |
|
|
3
бер. 15
|
6596 | ||
|
|
2
бер. 22
|
21990 | ||
|
|
1
січ. 24
|
5498 |