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),]