Removed [] from function signature

This commit is contained in:
Bertrand Chenal committed 2008-10-06 13:58:37 +02:00
1 parent df3245d006
commit ed83ecf5a5
1 file changed
+2 -2
+2 -2
View File
@@ -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():