Unable to open lots by location
Since changeset 48b680368def when opening opening the lots of a location I get the following traceback:
Traceback (most recent call last):
File "/trytond/wsgi.py", line 70, in dispatch_request
return endpoint(request, **request.view_args)
File "/trytond/protocols/dispatcher.py", line 41, in rpc
request, database_name, *request.rpc_params)
File "/trytond/wsgi.py", line 41, in auth_required
return wrapped(*args, **kwargs)
File "/trytond/protocols/wrappers.py", line 110, in wrapper
return func(request, pool, *args, **kwargs)
File "/trytond/protocols/dispatcher.py", line 165, in _dispatch
result = rpc.result(meth(*c_args, **c_kwargs))
File "/trytond/model/modelsql.py", line 779, in read
getter_results = field.get(ids, cls, field_list, values=result)
File "/trytond/model/fields/function.py", line 102, in get
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 102, in <genexpr>
return dict((name, call(name)) for name in names)
File "/trytond/model/fields/function.py", line 94, in call
return method(records, name)
File "/trytond/modules/stock_lot/stock.py", line 34, in get_quantity
grouping=('product', 'lot'))
File "/trytond/modules/stock/move.py", line 94, in _get_quantity
grouping=grouping)
File "/trytond/modules/stock/product.py", line 174, in products_by_location
grouping_filter = (product_ids,) + tuple(grouping_filter)
TypeError: 'NoneType' object is not iterable