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 af705205c9
commit 2a70d2fa46
1 file changed
+1
+1
View File
@@ -139,6 +139,7 @@ class OrderPoint(ModelSQL, ModelView):
query = ['OR']
for op in internals:
arg = ['AND',
('product', '=', op.product.id),
('provisioning_location', '=', op.storage_location.id),
('storage_location', '=', op.provisioning_location.id),
('company', '=', op.company.id),