Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
10594 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
4
thg 10 25
362
2
thg 10 25
434
1
thg 10 25
415
1
thg 9 25
359
1
thg 9 25
447