Ir al contenido
Menú
Se marcó esta pregunta
3 Respuestas
7633 Vistas

Hello,

I am looking for a way to use XMLRPC api with a cloud version of Odoo.

The process depicted here (https://doc.openerp.com/v6.1/developer/12_api/) states example for on premise version but not cloud version. Is it possible to use webservices with cloud version of Odoo?

Avatar
Descartar
Mejor respuesta

I believe it is, altough I haven't tried myself: about an year ago I was shown a Google Docs integration with OpenERp/Odoo, using web services.

The trick was to use the "admin" user.

You login with a cloud user and password, but behind the scenes, in your Odoo instance you are using "admin". You have to set a password for "admin"; this password will then be the one to use for the web services (and it's not the same as the password for your cloud login).

Avatar
Descartar
Autor Mejor respuesta

Thanks for your answer, I didn't see https://openerp.my.openerp.com/forum/Help-1/question/Is-the-Xml-RPC-API-available-on-OpenERP-Online-915

I was able to state a poc with curl thanks to this post:

curl --data '<?xml version="1.0" encoding="UTF-8"?>
<methodCall xmlns:ex="http://ws.apache.org/xmlrpc/namespaces/extensions">
    <methodName>login</methodName>
    <params>
        <param>
            <value>podbox</value>
        </param>
        <param>
            <value>admin</value>
        </param>
        <param>
            <value>admin</value>
        </param>
    </params>
</methodCall>' https://podbox.odoo.com/xmlrpc/common

<?xml version='1.0'?>
<methodResponse>
<params>
<param>
<value><int>1</int></value>
</param>
</params>
</methodResponse>

 

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
3
jun 20
3897
0
feb 19
3607
2
feb 19
4140
0
ene 17
2289
0
abr 24
796