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
- 会計
- 在庫
- PoS
- Project
- MRP
この質問にフラグが付けられました
2
返信
3934
ビュー
you can use python's round() function
Problem solved by just using 'round'. For eg. round(amount).
Thanks.
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
2
10月 18
|
6772 | ||
|
0
8月 22
|
2468 | ||
|
1
7月 22
|
20168 | ||
|
0
4月 22
|
3111 | ||
|
3
9月 21
|
3276 |