erro ao imprimir NFSe (Nota Carioca) v12
Alexandre-Bernardes opened this issue · 0 comments
Bom dia,
Consigo emitir a nota mas na hora de imprimir obtenho o erro a seguir. Alguém passando por esse problema também? Alguma dica do que pode ser?
Desde já obrigado.
Traceback (most recent call last):
File "o:\odoo 12.0\server\odoo\addons\base\models\ir_http.py", line 208, in _dispatch
result = request.dispatch()
File "o:\Odoo 12.0\server\odoo\http.py", line 835, in dispatch
r = self._call_function(**self.params)
File "o:\Odoo 12.0\server\odoo\http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "o:\Odoo 12.0\server\odoo\service\model.py", line 98, in wrapper
return f(dbname, *args, **kwargs)
File "o:\Odoo 12.0\server\odoo\http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "o:\Odoo 12.0\server\odoo\http.py", line 941, in call
return self.method(*args, **kw)
File "o:\Odoo 12.0\server\odoo\http.py", line 519, in response_wrap
response = f(*args, **kw)
File "o:\odoo 12.0_dados\addons\12.0\prt_report_attachment_preview\controllers\prt_controllers.py", line 64, in report_routes
pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
File "o:\odoo 12.0_dados\addons\odoo-brasil-12.0\br_nfe\reports\danfe_report.py", line 33, in render_qweb_pdf
res_ids, data=data)
File "o:\odoo 12.0_dados\addons\odoo-brasil-12.0\br_boleto\reports\boleto.py", line 21, in render_qweb_pdf
res_ids, data=data)
File "o:\odoo 12.0_dados\addons\odoo-brasil-12.0\br_boleto\reports\report.py", line 23, in render_qweb_pdf
res_ids, data=data)
File "o:\odoo 12.0\server\odoo\addons\base\models\ir_actions_report.py", line 735, in render_qweb_pdf
bodies, html_ids, header, footer, specific_paperformat_args = self.with_context(context)._prepare_html(html)
File "o:\odoo 12.0\server\odoo\addons\base\models\ir_actions_report.py", line 346, in _prepare_html
body_parent = root.xpath('//main')[0]
IndexError: list index out of range