How to retrive the current dbname and current hostname from odoo?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客户关系管理
- e-Commerce
- 会计
- 库存
- PoS
- Project
- MRP
此问题已终结
1
回复
10585
查看
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
相关帖文 | 回复 | 查看 | 活动 | |
---|---|---|---|---|
|
4
10月 25
|
329 | ||
|
2
10月 25
|
396 | ||
|
1
10月 25
|
385 | ||
|
1
9月 25
|
350 | ||
|
1
9月 25
|
437 |