Odoo Help

0

How do I get session information?

By
JC
on 7/21/14, 6:03 AM 853 views

How to retrive the current dbname and current hostname from odoo?

0
Ben Bernard
On 7/21/14, 11:01 AM

From client point of view, you can send POST request to <hostname>/web/session/get_session_info with payload

{"jsonrpc":"2.0","method":"call","params":{"session_id":session_id},"id":"r1"}

with session_id (I assume you already get this).

From server point of view I think you already know a suitable answer : https://www.odoo.com/forum/help-1/question/how-do-i-get-information-from-openerp-server-conf-in-python-program-57987

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

Question tools

1 follower(s)

Stats

Asked: 7/21/14, 6:03 AM
Seen: 853 times
Last updated: 3/16/15, 8:10 AM