跳至内容
菜单
此问题已终结
1 回复
6066 查看

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
10313
2
3月 15
7091
2
3月 15
6333
3
6月 25
1397
0
12月 24
9474