'v15: object has no attribute 'generate_report'

Using custom module report_xml to generate xml report. After following normal practices to generate custom report from here on model sale.order, also made my custom module dependent on report_xml. I get the following error:

content, ttype = report_model.generate_report( AttributeError: 'report.top_selling_product_report.top_selling_repo' object has no attribute 'generate_report'

Here is the link to the generate_report function in base module report_xml.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source