Skip ke Konten
Menu
Pertanyaan ini telah diberikan tanda
2 Replies
9166 Tampilan

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

Avatar
Buang
Jawaban Terbai

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

Avatar
Buang
Jawaban Terbai

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.

Avatar
Buang
Post Terkait Replies Tampilan Aktivitas
0
Agu 25
152
1
Agu 25
496
2
Jul 25
2951
3
Jul 25
699
1
Jun 25
2187