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
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
2
Respuestas
9764
Vistas
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?
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
RegistrarsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
0
jul 25
|
220 | ||
|
0
jun 25
|
447 | ||
|
1
jun 25
|
690 | ||
|
1
jun 25
|
720 | ||
|
1
may 25
|
1263 |
Same problem here.