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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
2
Respuestas
3811
Vistas
you can use python's round() function
Problem solved by just using 'round'. For eg. round(amount).
Thanks.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
2
oct 18
|
6601 | ||
|
0
ago 22
|
2287 | ||
|
1
jul 22
|
19993 | ||
|
0
abr 22
|
2963 | ||
|
3
sept 21
|
3149 |