Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I installed OpenERP on Debian Squeeze via the nightly apt repository.
The main user interface and the underlying bits all seem to work after I fixed the postgresql template, but the /xmlrpc/ interface is throwing 404 (Not Found) errors when I try to point a browser at http://[servername]:8069/xmlrpc/ or http://[servername]:8069/xmlrpc/common etc.
Are the xmlrpc files not included in the apt repository? From what I understand, it's removed from the SaaS version, but this is one I'm running myself.
Here is my configuration:
[options] admin_passwd = xxx db_host = False db_port = False db_user = openerp db_password = False xmlrpc = True xmlrpc_interface = x.x.x.x xmlrpc_port = 8069 proxy_mode = True
(The bottom bit was suggested as it will be running behind an nginx proxy to handle SSL)
I have been using XMLRPC for several weeks on V7, but indirectly through https://pypi.python.org/pypi/openerp-client-lib/1.0.0
I connect with :
connection = openerplib.get_connection ( login = creds['user_id'] , database = creds['db_name'] , hostname = creds['host_name'] , password = creds['user_pwd'] , protocol = 'xmlrpc' , port = 8069 )
However, I also get a "Not Found" if I try to point my browser at http://[servername]:8069/xmlrpc/ I think the problem you are seeing is a protocol clash; not missing code. In your browser you are specifying
xmlrpc. It doesn't work for me either, but I know that XMLRPC is working.
openerplib package makes many things much easier. I'd suggest you give it a try. I chose to use it, precisely because I didn't want to have to fiddle with the nuts'n bolts of XMLRPC.
The following little script should show you if XMLRPC is open for business on your server.
import openerplib connection = openerplib.get_connection(hostname="localhost", database="my_db", \ login="my_user", password="xxx") user_model = connection.get_model("res.users") ids = user_model.search([("login", "=", "admin")]) user_info = user_model.read(ids, ["name"]) print user_info["name"] # will print "Administrator"
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/5/13, 2:03 PM|
|Seen: 1989 times|
|Last updated: 3/16/15, 8:10 AM|