跳至内容
菜单
此问题已终结
3 回复
7753 查看

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?

形象
丢弃
最佳答案

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).

形象
丢弃
编写者 最佳答案

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>

 

形象
丢弃
相关帖文 回复 查看 活动
3
6月 20
4085
0
2月 19
3763
2
2月 19
4274
0
1月 17
2414
0
4月 24
893