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()