Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
4346 Zobrazení

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
Zrušit
Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
5
úno 19
7950
1
lis 17
8036
3
kvě 25
11642
2
led 20
7669
5
pro 18
29093