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

in default it takes only 10 digit no. in integer field in odoo 8. so how to increase the range of fields?

Аватар
Відмінити

hi ramanan, do you need to get more than 10 digits in that field?

Автор

yes gopal

can you please give an example field?

Найкраща відповідь

@Randy, I believe increasing the range of integer field entails more than just that.  Python's integer has a maximum value of sys.maxint.  Which depending on the operating system you are using can be 2147483647 (Windows 64 bit, 10 digit figure), 9223372036854775807 (Linux 64 bit), or other.

Even if you use char field as suggested by @Umarshankar, you need to be aware of that limitation if the integer field is to be used in calculation.

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

Hello Ramanan,

Here another simple solution.

1. Take your field as char field as long you want.

2. apply widget='integer' from xml file.

Hope this will help.

Regards,

Anil Kesariya

 

Аватар
Відмінити
Автор

its not work. age=fields.Char()

Найкраща відповідь

Integer field can take only 10 digit as its input, if you need more values you can try with char as your input field type.

Аватар
Відмінити