Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
1 Răspunde
7844 Vizualizări

Hi,

I have to connect with odoo in my localhost or my nearest system(192.168.0.24). 

So what should be my host url?

$url = <insert server URL>;

i tried "localhost:8069" and "192.168.0.24:8069"

$info = ripcord::client('https://demo.odoo.com/start')->start();

here i tried "localhost:8069/xmlrpc" and "192.168.0.24:8069/xmlrpc"

both not working. I don't know is it my host name is causing it.

What might be the problem?

what do "/start" stand for?

Imagine profil
Abandonează
Cel mai bun răspuns

Hi Akhil 

Please try this


import xmlrpclib

dbname = 'demo'

username = 'admin'

pwd = 'admin'

server = 'http://127.0.0.1:8069'

sock_common = xmlrpclib.ServerProxy(server + '/xmlrpc/common')

sock = xmlrpclib.ServerProxy(server + '/xmlrpc/object')

uid = sock_common.login(dbname, username, pwd)


recored_id = sock.execute(dbname, uid, pwd, 'model', 'search', [('name', '=', name])

print ">>>>>>>>>>>>", recored_id

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
2
nov. 16
13006
1
nov. 16
5001
1
nov. 22
3549
0
mar. 18
3845
1
mar. 15
6990