Odoo Help


How to store request.session data for another user programatically

Sah Vinay Mahabir
on 11/4/16, 11:10 AM 1,118 views

Is there any way to store session data for another user, if uid 1 is log in to the odoo and on button click the user with uid 1 want to add session data for uid 2 (uid 2 exist)
Is this possible programatically?


Axel Mendoza

--Axel Mendoza--
| 7 8 8
Camaguey, Cuba
--Axel Mendoza--

DevOps - Full stack - Software Architect - Developer - Technology Integrator

I could help you to develop anything and solve complex problems based on technologies, integrations and tricky stuffs mostly in Python with OpenERP/Odoo, Zato, Django and many others frameworks programming languages and technologies.

I offers consulting services to anyone with an unanswered questions or needs for customizations. Think about it, maybe it's better to have an expert to solve your issues and projects than having a full-time employee trying to understand what to do and how

Reach me at aekroft@gmail.com

Axel Mendoza
On 11/7/16, 10:24 PM

You could do this using the Odoo bus adding the behavior of processing an specific message to set it in the odoo session and cut the message propagation. You need to have a mail.channel with the other user. But think that the session for the user is not a matter of having the uid of the user, if you have the session id of the user session you could just retrieve it from the session store but if not, and I think that is the case, you need to communicate with the user session and the only way I could imagine is using the bus.bus messages because also if you have a way to login using xmlrpc into the user account you will end up with another session, not the one from the already authenticated user sessions, yes there could be multiple users sessions. With the bus.bus you could reach all of them or just one depending on the info that you pass it

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)


Asked: 11/4/16, 11:10 AM
Seen: 1118 times
Last updated: 11/7/16, 10:24 PM