Fix check on order point uniqueness

This commit is contained in:
Bertrand Chenal
2008-11-13 17:43:49 +01:00
parent 5cf749afdc
commit df34b976ac
+1
View File
@@ -102,6 +102,7 @@ class OrderPoint(OSV):
for op in self.browse(cursor, user, ids):
field = self._type2field(op.type)
arg = ['AND',
('product', '=', op.product.id),
(field, '=', op[field].id),
('id', '!=', op.id),
('company', '=', op.company.id),]