Trust-Code/odoo-brasil

Illegal character in Name Object

Closed this issue · 0 comments

Após a última atualização do odoo-brasil v.11 passei a ter esse erro na hora de imprimir (gerar pdf) da cotação de vendas.

Alguma dica do que pode ser?
Agradeço desde já.

log do erro:

Início
Voltar
500: Internal Server Error
Erro
Mensagem de erro:

Illegal character in Name Object
Traceback
Traceback (most recent call last):
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\generic.py", line 484, in readFromStream
return NameObject(name.decode('utf-8'))
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe1 in position 23: invalid continuation byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\program files (x86)\odoo 11.0\server\odoo\addons\base\ir\ir_http.py", line 208, in _dispatch
result = request.dispatch()
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 832, in dispatch
r = self._call_function(**self.params)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 344, in _call_function
return checked_call(self.db, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\service\model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 337, in checked_call
result = self.endpoint(*a, **kw)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 939, in call
return self.method(*args, **kw)
File "C:\Program Files (x86)\Odoo 11.0\server\odoo\http.py", line 517, in response_wrap
response = f(*args, **kw)
File "c:\program files (x86)\odoo 11.0\server\odoo\addons\website_quote\controllers\main.py", line 67, in view
pdf = request.env.ref('website_quote.report_web_quote').sudo().with_context(set_viewport_size=True).render_qweb_pdf([order_sudo.id])[0]
File "o:\odoo 11.0_dados\addons\odoo-brasil-11.0\br_nfe\reports\danfe_report.py", line 33, in render_qweb_pdf
res_ids, data=data)
File "o:\odoo 11.0_dados\addons\odoo-brasil-11.0\br_boleto\reports\boleto.py", line 21, in render_qweb_pdf
res_ids, data=data)
File "o:\odoo 11.0_dados\addons\odoo-brasil-11.0\br_boleto\reports\report.py", line 23, in render_qweb_pdf
res_ids, data=data)
File "c:\program files (x86)\odoo 11.0\server\odoo\addons\base\ir\ir_actions_report.py", line 667, in render_qweb_pdf
return self._post_pdf(save_in_attachment, pdf_content=pdf_content, res_ids=html_ids), 'pdf'
File "c:\program files (x86)\odoo 11.0\server\odoo\addons\base\ir\ir_actions_report.py", line 577, in _post_pdf
writer.write(result_stream)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 482, in write
self._sweepIndirectReferences(externalReferenceMap, self._root)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 571, in _sweepIndirectReferences
self._sweepIndirectReferences(externMap, realdata)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 547, in _sweepIndirectReferences
value = self._sweepIndirectReferences(externMap, value)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 571, in _sweepIndirectReferences
self._sweepIndirectReferences(externMap, realdata)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 547, in _sweepIndirectReferences
value = self._sweepIndirectReferences(externMap, value)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 556, in _sweepIndirectReferences
value = self._sweepIndirectReferences(externMap, data[i])
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 571, in _sweepIndirectReferences
self._sweepIndirectReferences(externMap, realdata)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 547, in _sweepIndirectReferences
value = self._sweepIndirectReferences(externMap, value)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 586, in _sweepIndirectReferences
newobj = self._sweepIndirectReferences(externMap, newobj)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 547, in _sweepIndirectReferences
value = self._sweepIndirectReferences(externMap, value)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 547, in _sweepIndirectReferences
value = self._sweepIndirectReferences(externMap, value)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 577, in _sweepIndirectReferences
newobj = data.pdf.getObject(data)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\pdf.py", line 1611, in getObject
retval = readObject(self.stream, self)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\generic.py", line 66, in readObject
return DictionaryObject.readFromStream(stream, pdf)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\generic.py", line 579, in readFromStream
value = readObject(stream, pdf)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\generic.py", line 60, in readObject
return NameObject.readFromStream(stream, pdf)
File "C:\Program Files (x86)\Odoo 11.0\python\lib\site-packages\PyPDF2\generic.py", line 492, in readFromStream
raise utils.PdfReadError("Illegal character in Name Object")
PyPDF2.utils.PdfReadError: Illegal character in Name Object