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
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
2
Risposte
3855
Visualizzazioni
you can use python's round() function
Problem solved by just using 'round'. For eg. round(amount).
Thanks.
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
2
ott 18
|
6650 | ||
|
0
ago 22
|
2380 | ||
|
1
lug 22
|
20073 | ||
|
0
apr 22
|
3052 | ||
|
3
set 21
|
3206 |