diff --git a/addons/stock/models/product.py b/addons/stock/models/product.py index 515f0fcfa64..29e501def45 100644 --- a/addons/stock/models/product.py +++ b/addons/stock/models/product.py @@ -313,7 +313,7 @@ class Product(models.Model): # to use the quants, not the stock moves. Therefore, we bypass the usual # '_search_product_quantity' method and call '_search_qty_available_new' instead. This # allows better performances. - if value == 0.0 and operator == '>' and not ({'from_date', 'to_date'} & set(self.env.context.keys())): + if not ({'from_date', 'to_date'} & set(self.env.context.keys())): product_ids = self._search_qty_available_new( operator, value, self.env.context.get('lot_id'), self.env.context.get('owner_id'), self.env.context.get('package_id')