跳至內容
選單
此問題已被標幟
1 回覆
4081 瀏覽次數

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?

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
5
2月 19
7686
1
11月 17
7788
3
5月 25
11323
2
1月 20
7288
5
12月 18
28620