[REV] reverted commit 9606, as it was hiding a bug instead of fixing it
[FIX] purchase: _get_picking_ids was wrong as it wasn't returning an empty list for purchase without results returned by the query