Skip to content
Snippets Groups Projects

[ADD] Parse the request and response to ease debug

Merged Santiago Said requested to merge parse-ws-response into devel
1 file
+ 1
1
Compare changes
  • Side-by-side
  • Inline
+ 1
1
@@ -26,7 +26,7 @@ class ws_request(models.Model):
ws_url = (self.env['ir.config_parameter'].sudo().get_param('financing.ws.url') or 'http://servicioscpz.credipaz.com/wsMIL/wsMIL.asmx') + '?WSDL'
ws_client = Client(ws_url)
try:
self.xml_res = ws_client.service.RegistrarVentaMil(sUsuario='odoo', sPassword='OdooP4sswd', sPin='20', xmlVenta=self.xml_req)
self.xml_res = ws_client.service.RegistrarVentaMil(sUsuario='odoo', sPassword='OdooP4sswd', sPin='203', xmlVenta=self.xml_req)
except Exception as e:
self.write({
'errors_ids': [(0, 0, {'name': _('Connection Error'), 'desc': e})]
Loading