I have a float field and i can calculate amount within this field. I want that amount should show in round figure. For eg. when price is 64.80 then it updated to 65 and if price 64.40 then it updated to 64. So, what solution i could use?
Thanks in advance.
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
2
Replies
3812
Tampilan
you can use python's round() function
Problem solved by just using 'round'. For eg. round(amount).
Thanks.
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
2
Okt 18
|
6602 | ||
|
0
Agu 22
|
2288 | ||
|
1
Jul 22
|
19993 | ||
|
0
Apr 22
|
2964 | ||
|
3
Sep 21
|
3149 |