diff --git a/location.py b/location.py
index cf390bf497..0511a914b8 100644
--- a/location.py
+++ b/location.py
@@ -304,11 +304,6 @@ class OpenProduct(Wizard):
context['stock_date_end'] = datetime.date.max
res['context'] = str(context)
- domain = eval(res['domain'])
- product_ids = product_obj.search(
- cursor, user, domain + [('quantity', '!=', 0.0)], context=context)
- res['domain'] = str(domain + [('id', 'in', product_ids)])
-
return res
OpenProduct()
diff --git a/location.xml b/location.xml
index e3cc969f48..f150d3c7e8 100644
--- a/location.xml
+++ b/location.xml
@@ -88,6 +88,7 @@ this repository contains the full copyright notices and license terms. -->
product.product
form
+ [('quantity', '!=', 0.0)]
Product Quantities