跳至內容
選單
此問題已被標幟
1 回覆
10663 瀏覽次數

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

頭像
捨棄
最佳答案

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

頭像
捨棄
相關帖文 回覆 瀏覽次數 活動
0
10月 25
3
2
10月 25
5567
2
10月 25
482
2
10月 25
629
1
10月 25
634