Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
1 Odpowiedz
4136 Widoki

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?

Awatar
Odrzuć
Najlepsza odpowiedź

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

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
5
lut 19
7732
1
lis 17
7830
3
maj 25
11339
2
sty 20
7378
5
gru 18
28650