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

How to ensure serial number is unique?

By
David Dean
on 9/3/13, 6:04 PM 1,190 views

Is there any way of making serial numbers:

1 - Unique 2 - Constrained, e.g. only an integer of a set number of digits

My product serial numbers are always a set number of digits and are unique per manufactured product, so OpenERP needs to help enforce that when warehouse users are entering the serial numbers.

Thanks,

Dave

0
Abhishek H Menon
On 9/9/13, 10:36 AM

if we want to specify an attribute as an unique attribute in openerp, we have to use _sql_constraints dictionary, we have to give the unique rule in that dictionary.

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

1 follower(s)

Stats

Asked: 9/3/13, 6:04 PM
Seen: 1190 times
Last updated: 3/16/15, 8:10 AM