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
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
2
Respostas
3857
Visualizações
you can use python's round() function
Problem solved by just using 'round'. For eg. round(amount).
Thanks.
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
|
2
out. 18
|
6652 | ||
|
0
ago. 22
|
2382 | ||
|
1
jul. 22
|
20074 | ||
|
0
abr. 22
|
3056 | ||
|
3
set. 21
|
3214 |