The issue is that some time ago I did a odoo test, in which I was asked to have a field in a table
I know that with sql it would be something like that
_sql_constraints = [('def_identification_unique', 'unique(blablabla)',
'blablabla must be unique!')]
I would like to know how to make the field unique but using a python function.
Thanks