Fix filed name call

This commit is contained in:
Bernat Brunet Torruella 2018-10-19 09:57:07 +02:00
parent d8a094b2f7
commit f033fab8a7

View file

@ -637,7 +637,7 @@ class SIIReport(Workflow, ModelSQL, ModelView):
reg.DatosFacturaEmitida.ClaveRegimenEspecialOTrascendencia),
'total_amount': _decimal(reg.DatosFacturaEmitida.ImporteTotal),
'taxes': [('add', [t.id for t in taxes])] if taxes else [],
'exemption_cause': exemption,
'exemption_key': exemption,
'counterpart_name': (
reg.DatosFacturaEmitida.Contraparte.NombreRazon
if reg.DatosFacturaEmitida.Contraparte else None),