Advertisement
Guest User

Untitled

a guest
Feb 9th, 2016
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. AFIP_Transaction = pool.get('account_invoice_ar.afip_transaction')
  2. with Transaction().new_cursor():
  3. AFIP_Transaction.create([{'invoice': self.id,
  4. 'pyafipws_result': ws.Resultado,
  5. 'pyafipws_message': msg,
  6. 'pyafipws_xml_request': ws.XmlRequest,
  7. 'pyafipws_xml_response': ws.XmlResponse,
  8. }])
  9. Transaction().cursor.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement