From a4be93faee358d6166a680cf6db9cb2546176f00 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robert=20Sch=C3=B6ftner?= Date: Wed, 22 Jan 2014 15:00:29 +0100 Subject: [PATCH] check for same product in constraint for internal oderpoints issue3591 review2721002 (transplanted from 203cecdea47d9daf7e53bf7d7070a3aa60806004) --- order_point.py | 1 + 1 file changed, 1 insertion(+) diff --git a/order_point.py b/order_point.py index 1140d5de75..e14ae75606 100644 --- a/order_point.py +++ b/order_point.py @@ -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),