Odoo Help

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 2,235 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)}); 

About This Community

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

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

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