Fix - al importar de Factura Libre
This commit is contained in:
parent
1c8fff1d37
commit
d3afe55eef
|
@ -2347,10 +2347,14 @@ class ImportFacturaLibre(object):
|
||||||
)
|
)
|
||||||
data = []
|
data = []
|
||||||
for row in rows:
|
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}
|
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
|
new['uuid'] = None
|
||||||
if new['xml'] is None:
|
if not 'xml' in new or new['xml'] is None:
|
||||||
new['xml'] = ''
|
new['xml'] = ''
|
||||||
if row['estatus'] == 'Pagada':
|
if row['estatus'] == 'Pagada':
|
||||||
new['pagada'] = True
|
new['pagada'] = True
|
||||||
|
|
Loading…
Reference in New Issue