This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# For this example we would be using the native xmlrpc python library. | |
import xmlrpc.client | |
import json | |
import ssl | |
ssl._create_default_https_context = ssl._create_unverified_context | |
# CONFIGURATION | |
# These parameters should be configurable in the external system. | |
url = 'http://oca-partner-contact-16-0-pr1675-a32c38a00de6.runboat.odoo-community.org' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
url = <insert server URL> | |
db = <insert database name> | |
username = <insert username> | |
password = <insert password> | |
// Authenticate user and get uid: | |
var common = new XMLRPC.XmlRpcRequest(url + "/xmlrpc/2/common", "authenticate"); | |
common.addParam(db); | |
common.addParam(username); | |
common.addParam(password); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Odoo Server Error | |
Traceback (most recent call last): | |
File "/odoo/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch | |
result = request.dispatch() | |
File "/odoo/odoo/odoo/http.py", line 683, in dispatch | |
result = self._call_function(**self.params) | |
File "/odoo/odoo/odoo/http.py", line 359, in _call_function | |
return checked_call(self.db, *args, **kwargs) | |
File "/odoo/odoo/odoo/service/model.py", line 94, in wrapper | |
return f(dbname, *args, **kwargs) |