Get all IDs in context that come under the active filters in openerp
Apply your filter and change number of visible records to unlimited (press on the field [1 to 80] of 4000 which is on the right top corner of you product tree view).
I have created a function to export data of selected record to a csv file. For example I have opened the product tree view, there are so many filters, I have selected 'service products filter' showing 5 products, then I click on the action and then the export button in my export wizard, these 5 products shown in the tree view are exported to a csv file. 
I have more than 4000 consumable products, if I select the filter consumable products, then the tree view will show 80 records(default limit) in the tree view. And if I click on the action and export the details, then I only get the 80 record IDs and these records are exported. But I need to get all consumable product IDs.
Is there any way to get all the ids that come under the active filter in the model?