Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Erro banco Itaú Odoo 12 #73

Open
abrunos opened this issue Jan 11, 2020 · 1 comment
Open

Erro banco Itaú Odoo 12 #73

abrunos opened this issue Jan 11, 2020 · 1 comment

Comments

@abrunos
Copy link

abrunos commented Jan 11, 2020

erro ao emitir boleto Itaú.

Erro:
Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo12/odoo12-server/addons/web/controllers/main.py", line 1670, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter)
File "/opt/odoo12/odoo12-server/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/opt/odoo12/odoo12-server/addons/web/controllers/main.py", line 1611, in report_routes
pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
File "/opt/odoo12/custom/addons/br_nfe/reports/danfe_report.py", line 33, in render_qweb_pdf
res_ids, data=data)
File "/opt/odoo12/custom/addons/br_boleto/reports/boleto.py", line 21, in render_qweb_pdf
res_ids, data=data)
File "/opt/odoo12/custom/addons/br_boleto/reports/report.py", line 45, in render_qweb_pdf
pdf_string = Boleto.get_pdfs(boleto_list)
File "/opt/odoo12/custom/addons/br_boleto/boleto/document.py", line 145, in get_pdfs
boleto.drawBoleto(boleto_list[i])
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/pdf.py", line 815, in drawBoleto
d = self._drawReciboCaixa(boleto_dados, x, y)
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/pdf.py", line 672, in _drawReciboCaixa
boleto_dados.format_nosso_numero()
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/bank/itau.py", line 46, in format_nosso_numero
self.dv_nosso_numero)
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/bank/itau.py", line 32, in dv_nosso_numero
return self.modulo10(composto)
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/data.py", line 459, in modulo10
parcial = int(c) * peso
ValueError: invalid literal for int() with base 10: 'G'

@abrunos
Copy link
Author

abrunos commented Jan 23, 2020

Erro:
Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo12/odoo12-server/addons/web/controllers/main.py", line 1670, in report_download
response = self.report_routes(reportname, docids=docids, converter=converter)
File "/opt/odoo12/odoo12-server/odoo/http.py", line 517, in response_wrap
response = f(*args, **kw)
File "/opt/odoo12/odoo12-server/addons/web/controllers/main.py", line 1611, in report_routes
pdf = report.with_context(context).render_qweb_pdf(docids, data=data)[0]
File "/opt/odoo12/custom/addons/br_nfe/reports/danfe_report.py", line 33, in render_qweb_pdf
res_ids, data=data)
File "/opt/odoo12/custom/addons/br_boleto/reports/boleto.py", line 21, in render_qweb_pdf
res_ids, data=data)
File "/opt/odoo12/custom/addons/br_boleto/reports/report.py", line 45, in render_qweb_pdf
pdf_string = Boleto.get_pdfs(boleto_list)
File "/opt/odoo12/custom/addons/br_boleto/boleto/document.py", line 145, in get_pdfs
boleto.drawBoleto(boleto_list[i])
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/pdf.py", line 815, in drawBoleto
d = self._drawReciboCaixa(boleto_dados, x, y)
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/pdf.py", line 672, in _drawReciboCaixa
boleto_dados.format_nosso_numero()
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/bank/itau.py", line 46, in format_nosso_numero
self.dv_nosso_numero)
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/bank/itau.py", line 32, in dv_nosso_numero
return self.modulo10(composto)
File "/usr/local/lib/python3.5/dist-packages/pyboleto-0.3.1-py3.5.egg/pyboleto/data.py", line 459, in modulo10
parcial = int(c) * peso
ValueError: invalid literal for int() with base 10: 'G'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant