Odoo Help

Welcome!

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.

0

Get session Id of the website(new module for V8) user from the javascript file

By
Hachem Chraiti
on 5/8/14, 4:12 PM 1,686 views

HI, HOw can i get the session Id of the website(new module for V8) user /or the name of the current user from the javascript file

Same problem here.

PY
on 2/17/15, 10:50 AM
0
Nedas Zilinskas
On 5/1/15, 5:02 PM

Hello Hachem,

It is possible to get session id, username and other session information with JS with the following code.

openerp.website.session.rpc("/web/session/get_session_info", {}).then(function(result) {console.log(result)}); 

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

1 follower(s)

Stats

Asked: 5/8/14, 4:12 PM
Seen: 1686 times
Last updated: 5/1/15, 5:02 PM