From d3afe55eefd2a9717fa9a302a28f764ad5aebd64 Mon Sep 17 00:00:00 2001 From: Mauricio Baeza Date: Thu, 28 Dec 2017 18:26:38 -0600 Subject: [PATCH] Fix - al importar de Factura Libre --- source/app/controllers/util.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/source/app/controllers/util.py b/source/app/controllers/util.py index f8a6e25..b215e96 100644 --- a/source/app/controllers/util.py +++ b/source/app/controllers/util.py @@ -2347,10 +2347,14 @@ class ImportFacturaLibre(object): ) data = [] for row in rows: + row = dict(row) + if not 'xml_acuse'in row: + row['xml_acuse'] = '' + new = {t: row[s] for s, t in fields} - if not new['uuid']: + if not 'uuid' in new or not new['uuid']: new['uuid'] = None - if new['xml'] is None: + if not 'xml' in new or new['xml'] is None: new['xml'] = '' if row['estatus'] == 'Pagada': new['pagada'] = True