Odoo Help

2

0
4 Answers
10
Avatar

Atul Arvind India

--Atul Arvind--
2138
| 4 3 7
Vadodara, India
--Atul Arvind--

Hello, 

I am Odoo Enthusiast/Developer from Vadodara, India. Working with Odoo from v5 to v11 and other opensource technology since 5+ years. Having Strong Expertise in

Odoo Development

Odoo Customization

Odoo Training

Odoo Integration

Server Administration

Odoo Migration

Implementation

Here is my StackOverflow profile.  you can also find me on LinkedIn.


Contact: atul.surficle@gmail.com.



Atul Arvind India
7/2/14, 3:33 AM

You can use a _constraint to check the value of your integer and raise an exception if it is not in your desired range.

Check this blog post about how to create a constraint.

2
Avatar

René Schuster Germany

--René Schuster--
1778
| 7 7 10
Weinheim, Germany
--René Schuster--

Challenge Everything!

René Schuster Germany
7/2/14, 3:40 AM

The size attribute is also availbe for integer fields!

'integer_field': fields.integer('My Integer', size=4),

 

Regards.

1 Comment
Tintu Mon India
6/19/19, 5:04 AM

It seems not working like Char field. Because when we use 'size' in fields.Char it won't allow more than that limit. But in Integer it allow to enter more than this limit.

So better user constraint for that specific field.

Ask a Question
Tag
Keep Informed
1 follower(s)
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.

Register
Odoo Training Center

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

Test it now