Take context into accont when searching for prodlots

The current implementation of _stock_search returns prodlots from every location.
This proposal makes it context-sensitive, so that it can be limited to a subset of locations and/or products.
if above is yes, then `location_id:False` means locations = [] so crash in sql query