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
- Buchhaltung
- Lager
- PoS
- Project
- MRP
Diese Frage wurde gekennzeichnet
2
Antworten
3911
Ansichten
you can use python's round() function
Problem solved by just using 'round'. For eg. round(amount).
Thanks.
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
RegistrierenVerknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
---|---|---|---|---|
|
2
Okt. 18
|
6678 | ||
|
0
Aug. 22
|
2422 | ||
|
1
Juli 22
|
20136 | ||
|
0
Apr. 22
|
3089 | ||
|
3
Sept. 21
|
3246 |