I have a requirement where a report has to be returned from the controller.
I have all the necessary data needed for calling the report get action method. But from a controller it's not working.
How can I achieve this?
Here is code:
datas = calreport_orm.print_report(cr, uid, [calreport_obj_id], context)
return request.registry.get('report').get_action(cr, uid, [], 'docmarolf_calendar.report_calendar_meeting', data=datas, context=context)