Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4067 Ansichten

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
Verwerfen
Beste Antwort

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
Verwerfen
Verknüpfte Beiträge Antworten Ansichten Aktivität
5
Feb. 19
7684
1
Nov. 17
7785
3
Mai 25
11317
2
Jan. 20
7277
5
Dez. 18
28610