Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- AFIP_Transaction = pool.get('account_invoice_ar.afip_transaction')
- with Transaction().new_cursor():
- AFIP_Transaction.create([{'invoice': self.id,
- 'pyafipws_result': ws.Resultado,
- 'pyafipws_message': msg,
- 'pyafipws_xml_request': ws.XmlRequest,
- 'pyafipws_xml_response': ws.XmlResponse,
- }])
- Transaction().cursor.commit()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement