Odoo Help

Welcome!

This community 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.

0

Numeric field constraint

By
aaa aaa
on 11/13/13, 7:02 AM 798 views

I am having problem with a numeric field. This field should be numbers only, and 11 in lenth.But it is not mandatory field,and "could" be left empty.

If i set the field as a char, i can set the length and it defaults to empty, but I don't know how to make a constraint to numeric only. If i set the field as int, i can set the length but it defaults to 0, which is not correct as the field is a serial number and 0 is not a correct value(it should be empty). I have made a custom module that inherits from the main module and loads correcty

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 11/13/13, 7:02 AM
Seen: 798 times
Last updated: 3/16/15, 8:10 AM