Hello,
I am using follwoing code in a python script to connect to my Odoo server
import xmlrpclib
svr, db = 'http://176.9.114.168:8069', 'school_erp'
user, pwd = 'xxxxx','xxxxx123'
info = xmlrpclib.ServerProxy('%s/xmlrpc/2/common' % svr)
But it is not getting connected and showing this error:
xmlrpclib.Fault: <Fault 1: 'Traceback (most recent call last):\n File "/opt/odoo/server/openerp/service/wsgi_server.py", line 75, in xmlrpc_return\n
result= openerp.http.dispatch_rpc(service, method, params)\n File "/opt/odoo/server/openerp/http.py", line 115, in dispatch_rpc\n result = dispatch(method,params)\n
File "/opt/odoo/server/openerp/service/common.py", line 23, in dispatch\n
raise Exception("Method not found: %s" % method)\nException: Method not found: __getitem__\n'>xmlrpclib.Fault:
What mistake am I making here?
TIA
Yogesh