Skip to Content
Menu
This question has been flagged
1 Reply
1520 Views

I want to get odoo information

example:use www.XXXX.com  is success

                 but i use 192.168.1.1 is error


       $ripcord = new \ripcord(); 

        $common = $ripcord::client($url."/xmlrpc/2/common");

        $common->version();

        $uid = $common->authenticate($db, $username, $pwd, array());

        $models = $ripcord::client($url."/xmlrpc/2/object");


        if($uid > 0){ $partner_field = $models->execute_kw($db, $uid, $pwd, 'res.users', 'search_read', array(array(array('id', '=', $uid),)), array('fields'=>array('id','name','image_small','partner_id')) );

            return json_encode($partner_field,JSON_UNESCAPED_UNICODE);

        }else{ return "0";

        }

Avatar
Discard
Author Best Answer

i'm wrong  is 192.16.1.1:8069    

Avatar
Discard