Odoo Help

Welcome!

This community 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.

0

How to store request.session data for another user programatically

By
Sah Vinay Mahabir
on 11/4/16, 11:10 AM 138 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?

0

Axel Mendoza

--Axel Mendoza--
10238
| 7 7 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 an 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

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

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