Hi,
I would like to know if there is a way and how to proceed to programmatically know what is the current database name from within module scripts.
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I would like to know if there is a way and how to proceed to programmatically know what is the current database name from within module scripts.
Thanks.
Try this code,
`dbName = self._cr.dbname`
Hi please try this:-
>> cursor_postgres.execute("select current_database()") |
Crie uma conta hoje mesmo para aproveitar os recursos exclusivos e interagir com nossa incrível comunidade!
Inscreva-sePublicações relacionadas | Respostas | Visualizações | Atividade | |
---|---|---|---|---|
Database for my module not created
Resolvido
|
|
4
abr. 24
|
2346 | |
|
2
fev. 23
|
6383 | ||
Database Odoo
Resolvido
|
|
1
mar. 18
|
3548 | |
|
1
mar. 17
|
3475 | ||
|
1
ago. 16
|
5128 |