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
- Financeiro
- Inventário
- PoS
- Project
- MRP
Esta pergunta foi sinalizada
1
Responder
6473
Visualizações
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
Está gostando da discussão? Não fique apenas lendo, participe!
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-se