I'm trying to insert in res.users with this code:
$values= array(
"name"=>new xmlrpcval($name,"string"),
"login"=>new xmlrpcval($login,"string"),
"password"=>new xmlrpcval($psw,"string"),
"lang"=>new xmlrpcval("it_IT","string"),
"company_id"= new xmlrpcval($company,"many2one");
);
echo $id= $this->create($values,"res.users");
I'm using a user with all the possible privileges.
The function returns a -1 state that means that I've no permission or the format is not corrected.
It works if I remove the company_id field.