コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
9786 ビュー

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.

最善の回答

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)}); 
アバター
破棄

Can I use this session info, to auto populate credentials to another url, where I wish to redirect user?

関連投稿 返信 ビュー 活動
0
7月 25
53
1
7月 25
4831
0
7月 25
369
0
6月 25
540
1
6月 25
735