Skip to content
Snippets Groups Projects
Commit fa060073 authored by Santiago Said's avatar Santiago Said
Browse files

[UPD] Credentials

parent bd4f2e6e
No related branches found
No related tags found
2 merge requests!5[ADD] Add button to update a product's financings after changing lst_price field,!1[ADD] Parse the request and response to ease debug
This commit is part of merge request !1. Comments created here will be created in the context of that merge request.
......@@ -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})]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment