跳至內容
選單
此問題已被標幟
2 回覆
3206 瀏覽次數

I imported bank statements by default import from csv file.

In the file the amount is -20.58 but in database I see -20.580000000000002.

What's wrong with numbers in Odoo?

頭像
捨棄
作者 最佳答案

As I understand this is due to float type used for numbers.

Float type is not precise!!!

Details are here https://docs.python.org/2/tutorial/floatingpoint.html

頭像
捨棄
最佳答案

use widget="integer" ..........

頭像
捨棄
作者

It's like a makeup, numbers are still not precise.

相關帖文 回覆 瀏覽次數 活動
2
7月 20
7694
4
3月 16
5656
0
5月 15
164
1
3月 15
5903
1
3月 15
6727