From df34b976ac8a1f032ea0019bdf02ad532afce4ce Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Thu, 13 Nov 2008 17:43:49 +0100 Subject: [PATCH] Fix check on order point uniqueness --- order_point.py | 1 + 1 file changed, 1 insertion(+) diff --git a/order_point.py b/order_point.py index 8356815244..f49df9ce5b 100644 --- a/order_point.py +++ b/order_point.py @@ -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),]