From 87d9b665d12823acd5bda42c460194d1d0694a80 Mon Sep 17 00:00:00 2001 From: juniortada Date: Wed, 22 Aug 2018 15:12:30 -0300 Subject: [PATCH] =?UTF-8?q?[fix]=20corre=C3=A7=C3=A3o=20caracteres=20inv?= =?UTF-8?q?=C3=A1lidos=20qrcode=20nfce?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pynfe/processamento/serializacao.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pynfe/processamento/serializacao.py b/pynfe/processamento/serializacao.py index bd2ad3a..05bec13 100644 --- a/pynfe/processamento/serializacao.py +++ b/pynfe/processamento/serializacao.py @@ -741,8 +741,8 @@ class SerializacaoQrcode(object): etree.SubElement(info, 'urlChave').text = url_chave nfe.insert(1, info) # correção da tag qrCode, retira caracteres pois e CDATA - tnfe = etree.tostring(nfe, encoding='unicode') - etree.tostring(nfe.find(".//qrCode"), encoding='unicode') \ + # tnfe = etree.tostring(nfe, encoding='unicode') + tnfe = etree.tostring(nfe.find(".//qrCode"), encoding='unicode') \ .replace('\n','').replace('<','<').replace('>','>').replace('amp;','') nfe = etree.fromstring(tnfe) # retorna nfe com o qrcode incluido NT2015/002 e qrcode