Hello all,
I have a form for "Fee Head". In that form i have field for "code". I want to make that code field unique. So that when i save one form with code=1, then next time time it should not allow me to save form with that code.?
please help.
Here is my code.
code = fields.Char(string='Code')
_sql_constraints = [
('new_name_uniq',
'UNIQUE (code)',
'Subjects must be unique.')]
Thank you!
Hello, Please remove duplicate value which is already stored in database and then try to install it again.