跳至內容
選單
此問題已被標幟
1 回覆
6098 瀏覽次數

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

頭像
捨棄
最佳答案

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.

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
2
3月 15
10346
2
3月 15
7122
2
3月 15
6387
3
6月 25
1457
0
12月 24
9523