Hello,
When i click print report for any standart report, i get this error.
Below is the error trace:
Traceback (most recent call last): File "/home/portaladmin/PycharmProjects/odoo-dev/custom/web/controllers/main.py", line 2053, in report_download response = self.report_routes(reportname, docids=docids, converter=converter, context=context) File "/home/portaladmin/PycharmProjects/odoo-dev/server/odoo/http.py", line 537, in response_wrap response = f(*args, **kw) File "/home/portaladmin/PycharmProjects/odoo-dev/custom/web/controllers/main.py", line 1986, in report_routes pdf = report.with_context(context)._render_qweb_pdf(docids, data=data)[0] File "/home/portaladmin/PycharmProjects/odoo-dev/server/odoo/addons/base/models/ir_actions_report.py", line 827, in _render_qweb_pdf pdf_content = self._run_wkhtmltopdf( File "/home/portaladmin/PycharmProjects/odoo-dev/server/odoo/addons/base/models/ir_actions_report.py", line 455, in _run_wkhtmltopdf head_file.write(header) TypeError: a bytes-like object is required, not 'Markup'
Note: When i remove wkhtmltopdf from machine, it shows html report, but when wkhtmltopdf is activated, i got this error.