콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
2 답글
9932 화면

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
352
1
7월 25
5217
0
7월 25
741
0
6월 25
824
1
6월 25
989