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

test #85

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft

test #85

wants to merge 1 commit into from

Conversation

corredato
Copy link
Contributor

@corredato corredato commented Nov 26, 2024

Traceback solved:

File "/opt/odoo/auto/addons/l10n_br_fiscal/models/document_eletronic.py", line 185, in _document_send
electronic._eletronic_document_send()
File "/opt/odoo/auto/addons/l10n_br_nfse_paulistana/models/document.py", line 331, in _eletronic_document_send
for p in processador.processar_documento(edoc):
File "/usr/local/lib/python3.7/site-packages/erpbrasil/edoc/edoc.py", line 135, in processar_documento
proc_envio = self.envia_documento(edoc)
File "/usr/local/lib/python3.7/site-packages/erpbrasil/edoc/nfse.py", line 79, in envia_documento
body=self._prepara_envia_documento(edoc),
File "/usr/local/lib/python3.7/site-packages/erpbrasil/edoc/provedores/paulistana.py", line 75, in _prepara_envia_documento
data_bytes = data.encode("ascii")
AttributeError: 'bytes' object has no attribute 'encode'

@corredato
Copy link
Contributor Author

Traceback solved:

File "/opt/odoo/auto/addons/l10n_br_fiscal/models/document_eletronic.py", line 185, in _document_send
electronic._eletronic_document_send()
File "/opt/odoo/auto/addons/l10n_br_nfse_paulistana/models/document.py", line 331, in _eletronic_document_send
for p in processador.processar_documento(edoc):
File "/usr/local/lib/python3.7/site-packages/erpbrasil/edoc/edoc.py", line 135, in processar_documento
proc_envio = self.envia_documento(edoc)
File "/usr/local/lib/python3.7/site-packages/erpbrasil/edoc/nfse.py", line 79, in envia_documento
body=self._prepara_envia_documento(edoc),
File "/usr/local/lib/python3.7/site-packages/erpbrasil/edoc/provedores/paulistana.py", line 75, in _prepara_envia_documento
data_bytes = data.encode("ascii")
AttributeError: 'bytes' object has no attribute 'encode'

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

Successfully merging this pull request may close these issues.

1 participant