Skip to content

Commit

Permalink
[FIX] Encode recibo_xml.
Browse files Browse the repository at this point in the history
Corige erro de encode no recibo do xml.
  • Loading branch information
fabioluna committed Mar 19, 2018
1 parent 3479973 commit 8119fdb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion br_nfe/models/invoice_eletronic.py
Original file line number Diff line number Diff line change
Expand Up @@ -835,7 +835,7 @@ def action_send_eletronic_invoice(self):
recibo_xml = resposta_recibo['received_xml']

if self.codigo_retorno == '100':
nfe_proc = gerar_nfeproc(resposta['sent_xml'], recibo_xml)
nfe_proc = gerar_nfeproc(resposta['sent_xml'], recibo_xml.encode())
self.nfe_processada = base64.encodestring(nfe_proc)
self.nfe_processada_name = "NFe%08d.xml" % self.numero

Expand Down

0 comments on commit 8119fdb

Please sign in to comment.