Odoo Help


how to increase the range in integer field in v8?

Demirel yakito
on 12/29/14, 8:24 AM 1,937 views

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?

Gopalakrishnan Kasilingam
on 12/29/14, 8:28 AM

yes gopal

Demirel yakito
on 12/29/14, 8:31 AM

can you please give an example field?

Baiju KS
on 12/29/14, 9:41 AM

ok shankar

Demirel yakito
on 12/29/14, 11:39 PM



| 5 3 6
Jakarta, Indonesia
On 12/30/14, 12:26 AM

@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.


Anil R. Kesariya

--Anil R. Kesariya--
| 6 5 8
Rajkot, India
--Anil R. Kesariya--

Odoo Techno Functional Expert

* Engaged with odoo since May - 2012.

* Customise existing module or develop new module base on customer requirement.

* Played key developer role in many past and running projects.

* Expert in requirement gathering of business and transforming requirement into odoo platform.

* Major expertise in core modules, database, report development and theme development.

* Integration expert.

Linkedin  : https://in.linkedin.com/in/anil-kesariya-97b20a66

Anil R. Kesariya
On 1/7/15, 8:27 AM

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.


Anil Kesariya


its not work. age=fields.Char()

Demirel yakito
on 1/20/15, 2:13 AM
Umashankar Subramani
On 12/29/14, 10:06 AM

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.

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

3 follower(s)


Asked: 12/29/14, 8:24 AM
Seen: 1937 times
Last updated: 3/16/15, 8:10 AM