Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
I try to simulate the functionallity which happens while exporting a record. This url is used:
I analysed whats happening and if I set the session_id and token manually it's working fine. Now what I try to do is to get the session_id in my script but I have no success so far.
session = requests.Session()
session_id = session.get('http://url').cookies.get_dict()["session_id"]
I get a session_id with the code above but I guess it's not from a authenticated user.
So my question is how do I get a session_id from a authenticated user? I can login with xmlrpc interface just fine, but I didn't find any information how to get to the session_id.
Thank you for your help
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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 4/25/16, 8:17 AM|
|Seen: 565 times|
|Last updated: 4/26/16, 10:32 AM|