Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
8952 Представления

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 Ответы Просмотры Активность
1
июл. 25
228
1
июн. 25
1895
1
июл. 25
880
1
апр. 25
1537
2
янв. 25
1713