I added a custom field called "x_test_textbox". And then added the field in the Quotation form view. I added the line
_sql_constraints = [ ('name_uniq', 'unique(x_test_textbox)', 'text duplicated!!') ]
into sale.py and update the webpage. But the custom field is still repeatable. Does somebody know to solve this problem?