Hi guys,
I want to check _sql_constraints of a model using function
Example , I have a function
@api.one
def check_constraint(self)
# CODE TO CHECK
return True # If ok
return False # If not ok
The below constraint must raise an error if the function returns False
_sql_constraints = [ .................]
I know It is possible by overriding the create method. But I forgot the correct way
Thanks in advance