-
-
Notifications
You must be signed in to change notification settings - Fork 136
Description
With Odoo Version 16 reports cannot be downloaded.
Steps to reproduce the behavior:
- report = odoo.report.download('TEMPLATE_NAME', ID)
Traceback (most recent call last):
File "main.py", line 10, in
report = odoo.report.download('lg_reports.rechnung_qr_report_template', 1650)
File "/home/pi/.local/lib/python3.5/site-packages/odoorpc/report.py", line 133, in download
response = report.with_context(context).render(ids, data=datas)
File "/home/pi/.local/lib/python3.5/site-packages/odoorpc/models.py", line 405, in rpc_method
self._name, method, args, kwargs)
File "/home/pi/.local/lib/python3.5/site-packages/odoorpc/odoo.py", line 486, in execute_kw
'args': args_to_send})
File "/home/pi/.local/lib/python3.5/site-packages/odoorpc/odoo.py", line 285, in json
data['error'])
odoorpc.error.RPCError: type object 'ir.actions.report' has no attribute 'render'