Odoo Help


This community 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.


V8 : authentification JSON query has changed ? [SOLVED]

on 2/14/14, 5:51 AM 2,738 views

I use a set of JSON-RPC queries.

With version 7, the process is okay : -i retrieve the cookie (name "sid")
-web/session/authenticate (i send to OpenERP the username, the password, the cookie)

But with version 8, it seems to have changed -i retrieve the cookie (name has changed to "session_id")
-but then no "web/session/authenticate"

My question is : how to manage the authentification process in JSON queries in version 8 ? The whole process has changed or I'm doing something wrong ?

How to send to OpenERP, via JSON-RPC, the username and password ?

After some work, here are the changes.

on 2/15/14, 9:05 AM

web/session/authenticate,this address that i can not vist on V8, error info:OpenERPJSONRPCClientMethodNotFoundError: http://localhost:8069/web/session/authenticate is not a valid URL.

on 6/3/14, 9:52 PM
On 2/15/14, 9:09 AM

OK, my problem is solved.

Here are the changes, between version 7 and 8.

1-the name of the cookie
V7 = "sid"
V8 = "session_id"

2-in the JSON queries
V7 = need to put "session_id":"xxxxxxxxxxxxxxxxxxxxx"
V8 = no need

Example :

3-the mechanism
V7=need to set the cookie, with the value (retrieved from the header) and not the session_id (sent by OpenERP, after authentification)
V8=both are identical

Last but not least : "web/session/authenticate" is working fine V8. I made a mistake.

what do you mean by: retrieved from the header ? do you think it's possible to associate the session_id with an URL so that tue user can connect automaticly to Openerp v7

feriel bendimerad
on 11/9/14, 9:22 AM
On 6/3/14, 10:01 PM


server_response = requests.post('http://localhost:8069/web/session/get_session_info', json.dumps(post_data), cookies=self._cookies)


server_response.json() is no problem



server_response.json() is error


what changes i do that make me can use server_response.json() in v8?


Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 2/14/14, 5:51 AM
Seen: 2738 times
Last updated: 3/16/15, 8:10 AM