Su fatture importate da odoo10 , quando cerco di stampare ho questo errore :
Odoo Server Error
Traceback (most recent call last):
File "/usr/lib64/python3.7/base64.py", line 510, in _input_type_check
m = memoryview(s)
TypeError: memoryview: a bytes-like object is required, not 'str'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1620, in report_download
response = self.report_routes(reportname, docids=docids, converter='pdf')
File "/usr/lib/python3.7/site-packages/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1569, in report_routes
pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 627, in render_qweb_pdf
return self._post_pdf(save_in_attachment), 'pdf'
File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 501, in _post_pdf
return base64.decodestring(list(save_in_attachment.values())[0].datas)
File "/usr/lib64/python3.7/base64.py", line 554, in decodestring
return decodebytes(s)
File "/usr/lib64/python3.7/base64.py", line 545, in decodebytes
_input_type_check(s)
File "/usr/lib64/python3.7/base64.py", line 513, in _input_type_check
raise TypeError(msg) from err
TypeError: expected bytes-like object, not str
Odoo Server Error
Traceback (most recent call last): File "/usr/lib64/python3.7/base64.py", line 510, in _input_type_check m = memoryview(s) TypeError: memoryview: a bytes-like object is required, not 'str' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1620, in report_download response = self.report_routes(reportname, docids=docids, converter='pdf') File "/usr/lib/python3.7/site-packages/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1569, in report_routes pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0] File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 627, in render_qweb_pdf return self._post_pdf(save_in_attachment), 'pdf' File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 501, in _post_pdf return base64.decodestring(list(save_in_attachment.values())[0].datas) File "/usr/lib64/python3.7/base64.py", line 554, in decodestring return decodebytes(s) File "/usr/lib64/python3.7/base64.py", line 545, in decodebytes _input_type_check(s) File "/usr/lib64/python3.7/base64.py", line 513, in _input_type_check raise TypeError(msg) from err TypeError: expected bytes-like object, not str
Odoo Server Error
Traceback (most recent call last): File "/usr/lib64/python3.7/base64.py", line 510, in _input_type_check m = memoryview(s) TypeError: memoryview: a bytes-like object is required, not 'str' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1620, in report_download response = self.report_routes(reportname, docids=docids, converter='pdf') File "/usr/lib/python3.7/site-packages/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1569, in report_routes pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0] File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 627, in render_qweb_pdf return self._post_pdf(save_in_attachment), 'pdf' File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 501, in _post_pdf return base64.decodestring(list(save_in_attachment.values())[0].datas) File "/usr/lib64/python3.7/base64.py", line 554, in decodestring return decodebytes(s) File "/usr/lib64/python3.7/base64.py", line 545, in decodebytes _input_type_check(s) File "/usr/lib64/python3.7/base64.py", line 513, in _input_type_check raise TypeError(msg) from err TypeError: expected bytes-like object, not str
Odoo Server Error
Traceback (most recent call last): File "/usr/lib64/python3.7/base64.py", line 510, in _input_type_check m = memoryview(s) TypeError: memoryview: a bytes-like object is required, not 'str' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1620, in report_download response = self.report_routes(reportname, docids=docids, converter='pdf') File "/usr/lib/python3.7/site-packages/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1569, in report_routes pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0] File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 627, in render_qweb_pdf return self._post_pdf(save_in_attachment), 'pdf' File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 501, in _post_pdf return base64.decodestring(list(save_in_attachment.values())[0].datas) File "/usr/lib64/python3.7/base64.py", line 554, in decodestring return decodebytes(s) File "/usr/lib64/python3.7/base64.py", line 545, in decodebytes _input_type_check(s) File "/usr/lib64/python3.7/base64.py", line 513, in _input_type_check raise TypeError(msg) from err TypeError: expected bytes-like object, not str
Odoo Server Error
Traceback (most recent call last): File "/usr/lib64/python3.7/base64.py", line 510, in _input_type_check m = memoryview(s) TypeError: memoryview: a bytes-like object is required, not 'str' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1620, in report_download response = self.report_routes(reportname, docids=docids, converter='pdf') File "/usr/lib/python3.7/site-packages/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1569, in report_routes pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0] File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 627, in render_qweb_pdf return self._post_pdf(save_in_attachment), 'pdf' File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 501, in _post_pdf return base64.decodestring(list(save_in_attachment.values())[0].datas) File "/usr/lib64/python3.7/base64.py", line 554, in decodestring return decodebytes(s) File "/usr/lib64/python3.7/base64.py", line 545, in decodebytes _input_type_check(s) File "/usr/lib64/python3.7/base64.py", line 513, in _input_type_check raise TypeError(msg) from err TypeError: expected bytes-like object, not str
Odoo Server Error
Traceback (most recent call last): File "/usr/lib64/python3.7/base64.py", line 510, in _input_type_check m = memoryview(s) TypeError: memoryview: a bytes-like object is required, not 'str' The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1620, in report_download response = self.report_routes(reportname, docids=docids, converter='pdf') File "/usr/lib/python3.7/site-packages/odoo/http.py", line 515, in response_wrap response = f(*args, **kw) File "/usr/lib/python3.7/site-packages/odoo/addons/web/controllers/main.py", line 1569, in report_routes pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0] File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 627, in render_qweb_pdf return self._post_pdf(save_in_attachment), 'pdf' File "/usr/lib/python3.7/site-packages/odoo/addons/base/ir/ir_actions_report.py", line 501, in _post_pdf return base64.decodestring(list(save_in_attachment.values())[0].datas) File "/usr/lib64/python3.7/base64.py", line 554, in decodestring return decodebytes(s) File "/usr/lib64/python3.7/base64.py", line 545, in decodebytes _input_type_check(s) File "/usr/lib64/python3.7/base64.py", line 513, in _input_type_check raise TypeError(msg) from err TypeError: expected bytes-like object, not str