I want to print a report from a python method and the code i actually have isn't working, i got a error like this :
File "/odoo/odoo-server/odoo/modules/registry.py", line 181, in __getitem__
return self.models[model_name]
KeyError: 'report'
and the code i have is :
@api.multi
def sample_report_from_method(self):
return self.env['report'].get_action('custom.custom_report_demo')