My question is how can I get the name of the database, where I am accessing, by python code.
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
1
Responder
6458
Vistas
Hi Michael,
You can actually get the data from the Odoo cursor. New API:
db_name = self._cr.dbname
Old API:
db_name = cr.dbname
db_name will then contain the name of your database.
Regards,
Yenthe
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse