I update you on my tests on json-rpc:
-
Login on http: // localhost: 8001 / <db_name> /
return values: call_id, user_id and session_id. -
Get User Preferences:
on http: // localhost: 8001 / (if I add the db_name in the url I have 401 error)
JSON.stringify ({'method': 'model.res.user.get_preferences', 'id': 3, 'params': [userId, session, true, {}]})
But I get this error:
u'model.res.user.get_preferences', Traceback (most recent call last):
File "/site-packages/trytond/wsgi.py", line 71, in dispatch_request
return endpoint (request, ** request.view_args)
File "/site-packages/trytond/protocols/dispatcher.py", line 82, in root
return methods [request.rpc_method] (request, * request.rpc_params)
KeyError: u'model.res.user.get_preferences'
Who helps me???