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
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Бухоблік
- Склад
- PoS
- Project
- MRP
Це запитання позначене
2
Відповіді
9770
Переглядів
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?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
|
0
лип. 25
|
254 | ||
|
0
черв. 25
|
476 | ||
|
1
черв. 25
|
711 | ||
|
1
черв. 25
|
733 | ||
|
1
трав. 25
|
1283 |
Same problem here.