tryton-ar / account_invoice_ar

Tryton module with AFIP WS integration
GNU General Public License v3.0
14 stars 13 forks source link

Cuando falla al contabilizar factura, tira un error al loggear. #146

Closed lukio closed 5 years ago

lukio commented 5 years ago

                 'XmlResponse: %s\n',
                 last_invoice.id,
                 last_invoice.type, last_invoice.party.rec_name,
-                str(last_invoice.pyafipws_xml_request),
-                str(last_invoice.pyafipws_xml_response))
+                str(last_invoice.transactions[-1].pyafipws_xml_request),
+                str(last_invoice.transactions[-1].pyafipws_xml_response))

El problema es que invoice no tiene el atribute pyafipws_xml_request, sino que lo tiene el modelo de Transactiones de AFIP.