check for same product in constraint for internal oderpoints

issue3591
review2721002
(transplanted from 203cecdea47d9daf7e53bf7d7070a3aa60806004)
This commit is contained in:
Robert Schöftner committed 2014-01-22 15:00:29 +01:00
1 parent 1164c3fad9
commit aaa1e28189
1 file changed
+1
+1
View File
@@ -130,6 +130,7 @@ class OrderPoint(ModelSQL, ModelView):
query = ['OR']
for op in self.browse(internal_ids):
arg = ['AND',
('product', '=', op.product.id),
('provisioning_location', '=', op.storage_location.id),
('storage_location', '=', op.provisioning_location.id),
('company', '=', op.company.id),