Hi,
I'm trying to connect to Odoo using Javascript and xmlrpc library but I don't know what I'm doing wrong.
This is my Javascript code:
var inParams = [];
inParams.push([['is_company', '=', true],['customer', '=', true]]);
var parametros = [];
parametros.push(inParams);
$.xmlrpc({
url: 'http://192.168.1.15:8069/xmlrpc/2/object',
methodName: 'execute_kw',
crossDomain: true,
params:['midatabase',uid,'mipass','res.partner', 'search', parametros],
success: function(response, status, jqXHR) {alert(response);},
error: function(jqXHR, status, error) { alert('Error : ' + error ) }
})
I always obtain this error: TypeError: unhashable type: 'list' but I don't know how to fix
Thanks
Any Update about this?