From bd6fb65a1b96bc532b52c2276ca4e9961836d31c Mon Sep 17 00:00:00 2001 From: El Mau Date: Thu, 10 Mar 2022 19:24:29 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20-=20Problema=20al=20timbra=20n=C3=B3mina?= =?UTF-8?q?=20con=20Comercio=20Digital?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/app/controllers/pacs/comerciodigital/comercio.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/app/controllers/pacs/comerciodigital/comercio.py b/source/app/controllers/pacs/comerciodigital/comercio.py index e930278..a06c5a7 100644 --- a/source/app/controllers/pacs/comerciodigital/comercio.py +++ b/source/app/controllers/pacs/comerciodigital/comercio.py @@ -126,10 +126,10 @@ class PACComercioDigital(object): """ Comercio Digital solo soporta la declaraciĆ³n con doble comilla """ - tree = ET.fromstring(xml.encode()) - xml = ET.tostring(tree, - pretty_print=True, doctype='') - return xml + # ~ tree = ET.fromstring(xml.encode()) + # ~ xml = ET.tostring(tree, + # ~ pretty_print=True, doctype='') + return xml.encode('utf-8') def stamp(self, cfdi, auth): # ~ if DEBUG or not auth: