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