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
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
4138
Tampilan
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
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
Daftar| Post Terkait | Replies | Tampilan | Aktivitas | |
|---|---|---|---|---|
|
|
1
Mar 15
|
6106 | ||
|
repeatin error on empty list
Diselesaikan
|
|
2
Des 22
|
7406 | |
|
|
3
Mar 15
|
6377 | ||
|
|
2
Mar 22
|
21718 | ||
|
|
1
Jan 24
|
5269 |