Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Unique Internal Reference... [Closed]
The Question has been closedby
I need that the field "Internal Reference" of products to be a field unique. Anyone help me?
class product_product(osv.osv): _inherit = "product.product" _name = "product.product" _sql_constraints = [ ('code', 'unique(code)', 'Product Reference must be unique!'), ] product_product()
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
|Asked: 4/11/13, 3:52 PM|
|Seen: 3583 times|
|Last updated: 3/16/15, 8:10 AM|