Skip to Content
मेन्यू
This question has been flagged
1 Reply
4061 Views

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?

Avatar
Discard
Best Answer

Hi,

I think you have to try it in anew database,  sql constrains will not get into effect in  an existing database.


So create a test db and install the module and see whether it is working as expected or not.


Thanks

Avatar
Discard
Related Posts Replies Views Activity
5
फ़र॰ 19
7670
1
नव॰ 17
7763
3
मई 25
11306
2
जन॰ 20
7273
5
दिस॰ 18
28596