Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4083 Переглядів

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
5
лют. 19
7686
1
лист. 17
7788
3
трав. 25
11323
2
січ. 20
7289
5
груд. 18
28620