Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
4 Відповіді
4933 Переглядів

I am using Odoo 10 and I cant figure out how to stop a custom float field rounding.

Here is my field box = fields.Float("Yards Per Box")

In Odoo if I put 1.196 into the field it auto rounds to 1.20 how can I stop this on a custom Float field?

Аватар
Відмінити
Найкраща відповідь

Use this one

box = fields.Float("Yards Per Box",digits=(12,3))

Hope this will helps you and others.

Аватар
Відмінити
Автор Найкраща відповідь

Thanks what does the (12,3)) stand for. If I have a float field that is 2.17 how do I get it to go to next number 3?

Аватар
Відмінити
Найкраща відповідь

thanks for the reply

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
вер. 23
9941
1
лют. 22
6986
2
лип. 19
3017
0
лист. 18
2936
2
січ. 18
7381