Removed [] from function signature
This commit is contained in:
1 parent
df3245d006
commit
ed83ecf5a5
1 file changed
+2
-2
+2
-2
@@ -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():
|
||||
|
||||
Reference in new issue
Block a user