Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
4135 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
5
feb. 19
7732
1
nov. 17
7829
3
mei 25
11337
2
jan. 20
7377
5
dec. 18
28650