Fix - Generar XML sin relacionados
This commit is contained in:
parent
2e06083e29
commit
a9dcc07427
|
@ -117,7 +117,7 @@ class CFDI(object):
|
|||
return
|
||||
|
||||
def _relacionados(self, datos):
|
||||
if not datos['tipo'] or not datos['cfdis']:
|
||||
if not datos or not datos['tipo'] or not datos['cfdis']:
|
||||
return
|
||||
|
||||
node_name = '{}:CfdiRelacionados'.format(self._pre)
|
||||
|
|
Loading…
Reference in New Issue