hello.. is it possible to get a list of DB in odoo from external? (use API)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- 客戶關係
- e-Commerce
- 會計
- 庫存
- PoS
- Project
- MRP
此問題已被標幟
2
回覆
8927
瀏覽次數
Hi,
Use odoorpc library for this,
import odoorpc
# Prepare the connection to the server
odoo = odoorpc.ODOO('localhost', port=8069)
print(odoo.db.list())
odoo.db.list() will return all the db names
Know more about odoo rpc library: OdooRPC: Connect To Odoo Database and Perform All Operations
Thanks
Hi! I know it's a late reply, just found this URL in Odoo's base code. This answer to anyone who needs it.
You can find this URL:
/web/database/list
Make sure you have "Content-Type" as "application/json" in headers and an empty {} in body. I tested this successfully in Postman.
相關帖文 | 回覆 | 瀏覽次數 | 活動 | |
---|---|---|---|---|
|
0
7月 25
|
182 | ||
|
1
6月 25
|
1866 | ||
|
1
7月 25
|
852 | ||
|
1
4月 25
|
1522 | ||
|
2
1月 25
|
1688 |