Hello Odooers,
Using Odoo Studio, I'm trying to find how I can make a unique field with an error message (ex. This Order ID already exists).
I see some posts with the code below, but I have no idea where to insert it ? and if that's only a python code that cannot be used in Studio ?
_sql_constraints = [
('name_uniq', 'unique (name)', "Tag already exists!"),
]
Thanks for the help !
Much appreciate.