Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
languagepy
titlePython
common = xmlrpclibxmlrpc.client.ServerProxy('{}/xmlrpc/2/common'.format(url))
common.version()

...

Code Block
languagexml
titleResult
{
	"server_version": "912.0",
	"server_version_info": [912, 0, 0, "final", 0],
	"server_serie": "912.0",
	"protocol_version": 1,
}

...

Code Block
languagepy
titlePython
models = xmlrpclibxmlrpc.client.ServerProxy('{}/xmlrpc/2/object'.format(url))
models.execute_kw(db, uid, password, 'crm.lead', 'check_access_rights', ['read'], {'raise_exception': False})
id = models.execute_kw(db, uid, password, 'crm.lead', 'create', [{ 'name': "New Lead", }])

...