Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
9908 Lượt xem

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

Ảnh đại diện
Huỷ bỏ

Same problem here.

Câu trả lời hay nhất

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)}); 
Ảnh đại diện
Huỷ bỏ

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 7 25
340
1
thg 7 25
5198
0
thg 7 25
722
0
thg 6 25
810
1
thg 6 25
969