跳至內容
選單
此問題已被標幟
1 回覆
2555 瀏覽次數

Is it possible to synchronize data between Odoo enterprise on Odoo.com with other SW? Does the API work here?

頭像
捨棄
最佳答案

Yes you can build your APIs through Odoo's XMLRPC point located at this URL /xmlrpc/2/object

here is an example of an XMLRPC request from a PHP file

	$url = "http://demo3.odoo.com";
$db = "demo3";
$username = "admin";
$password = "admin";
$end_point = $url . "/xmlrpc/2/object";

        $model = ripcord::client($end_point);

        $result = $model->execute_kw(
$db,$uid,$password,"res.partner","search_read",
array(
array(
// array("id","=",1),
array("name","ilike","ali")
),
),
array('fields'=>array("name","phone","email"))
);

echo json_encode($result);


You can find a full example here if you want.



Happy to help :) an upvote will be awesome

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
8月 24
1009
2
7月 24
1274
2
6月 24
1155
2
3月 24
3491
1
2月 24
1188