Fix check on order point uniqueness
This commit is contained in:
@@ -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),]
|
||||
|
||||
Reference in New Issue
Block a user