check for same product in constraint for internal oderpoints
issue3591 review2721002 (transplanted from 203cecdea47d9daf7e53bf7d7070a3aa60806004)
This commit is contained in:
1 parent
2acd8051c8
commit
a4be93faee
1 file changed
+1
@@ -141,6 +141,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),
|
||||
|
||||
Reference in new issue
Block a user