Odoo Help

2

0
4 答案
10
头像

Atul Arvind 印度

--Atul Arvind--
2138
| 4 3 7
Vadodara, 印度
--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 印度
2014/7/2 上午3:33

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
头像

René Schuster 德国

--René Schuster--
1768
| 7 7 10
Weinheim, 德国
--René Schuster--

Challenge Everything!

René Schuster 德国
2014/7/2 上午3:40

The size attribute is also availbe for integer fields!

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

 

Regards.

1 备注
Tintu Mon 印度
2019/6/19 上午5:04

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.

0
Rakesh Vadeghar 印度
2017/7/27 上午2:58

提问
标签
Keep Informed
1 关注者(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