Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
2 Відповіді
9000 Переглядів

hello.. is it possible to get a list of DB in odoo from external? (use API)

Аватар
Відмінити
Найкраща відповідь

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.

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
лип. 25
2653
3
лип. 25
483
1
лип. 25
163
1
черв. 25
1944
1
лип. 25
922