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:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Project
- MRP
Se marcó esta pregunta
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
InscribirsePublicaciones relacionadas | Respuestas | Vistas | Actividad | |
---|---|---|---|---|
|
1
jun 25
|
414 | ||
Original project names via the API
Resuelto
|
|
1
abr 25
|
1170 | |
|
2
ene 25
|
1262 | ||
|
0
sept 24
|
4 | ||
|
0
sept 24
|
1428 |