From 83591e892189dce7e7895e94dd548b675a30ebcc Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Wed, 8 Apr 2009 12:16:29 +0200 Subject: [PATCH] Products by location: put the domain on the action --- location.py | 5 ----- location.xml | 1 + 2 files changed, 1 insertion(+), 5 deletions(-) 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