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
6057 Widoki

Is there any way of making serial numbers:

1 - Unique 2 - Constrained, e.g. only an integer of a set number of digits

My product serial numbers are always a set number of digits and are unique per manufactured product, so OpenERP needs to help enforce that when warehouse users are entering the serial numbers.

Thanks,

Dave

Awatar
Odrzuć
Najlepsza odpowiedź

if we want to specify an attribute as an unique attribute in openerp, we have to use _sql_constraints dictionary, we have to give the unique rule in that dictionary.

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
mar 15
10309
2
mar 15
7089
2
mar 15
6332
3
cze 25
1393
0
gru 24
9472