跳至内容
菜单
此问题已终结
2 回复
9759 查看

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
149
0
6月 25
430
1
6月 25
686
1
6月 25
706
1
5月 25
1242