Hello Abayomi Olatidoye,
Add two date fields in the wizard like start_date and end_date.
Create a method for wizard button and you can check the records which is between start_date and end_date.
Ex:-
@api.multi
def method(self):
self.ensure_one()
data = {}
data['ids'] = self.env.context.get('active_ids', [])
data['model'] = self.env.context.get('active_model', 'ir.ui.menu')
data['form'] = self.read(['start_date', 'end_date'])[0]
record_search_obj = self.env['model.name'].search([('model_date_field', '>=', self.start_date), ('model_date_field', '<=', self.end_date)]).ids
datas = {
'ids': record_search_obj,
'model': 'model.name',
'form': record_search_obj,
}
return {
'type': 'ir.actions.report.xml',
'report_name': 'module_name.report_id',
'datas': datas}
Hope this code will helps you.
Thanks,