From ed83ecf5a55be30c64a3207f60b19d5ce033de90 Mon Sep 17 00:00:00 2001 From: Bertrand Chenal Date: Mon, 6 Oct 2008 13:58:37 +0200 Subject: [PATCH] Removed [] from function signature --- product.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/product.py b/product.py index eed1504824..020cec3a2d 100644 --- a/product.py +++ b/product.py @@ -47,8 +47,8 @@ class Product(OSV): res = res and (eval(str(value) + operator + str(operand))) return res - def search_quantity(self, cursor, user, name, domain=[], context=None): - if not (context and context.get('locations')): + def search_quantity(self, cursor, user, name, domain=None, context=None): + if not (context and context.get('locations') and domain): return [] if (name != 'forecast_quantity') and context.get('stock_date_end'): if context['stock_date_end'] != datetime.date.today():