[SOLVED] PDF printing error

I have upgrade to v7. I tried to print profit and loss report using pdf report will not display this is the error. Any ideas?

11:35:12 web.1            | Request Error
11:35:12 web.1            | Traceback (most recent call last):
11:35:12 web.1            |   File "/home/chris/frappe-bench/apps/frappe/frappe/app.py", line 58, in application
11:35:12 web.1            |     response = frappe.api.handle()
11:35:12 web.1            |   File "/home/chris/frappe-bench/apps/frappe/frappe/api.py", line 49, in handle
11:35:12 web.1            |     return frappe.handler.handle()
11:35:12 web.1            |   File "/home/chris/frappe-bench/apps/frappe/frappe/handler.py", line 19, in handle
11:35:12 web.1            |     execute_cmd(cmd)
11:35:12 web.1            |   File "/home/chris/frappe-bench/apps/frappe/frappe/handler.py", line 30, in execute_cmd
11:35:12 web.1            |     method = get_attr(cmd)
11:35:12 web.1            |   File "/home/chris/frappe-bench/apps/frappe/frappe/handler.py", line 114, in get_attr
11:35:12 web.1            |     method = frappe.get_attr(cmd)
11:35:12 web.1            |   File "/home/chris/frappe-bench/apps/frappe/frappe/__init__.py", line 856, in get_attr
11:35:12 web.1            |     return getattr(get_module(modulename), methodname)
11:35:12 web.1            | AttributeError: 'module' object has no attribute 'report_to_pdf'

https://github.com/frappe/frappe/issues/1912

I have created a PR to solve this issue. I just add the old functions
https://github.com/frappe/frappe/pull/1916

@rmehta thanks for the fix! :slight_smile: