Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
4671 Visualizações

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.

Avatar
Cancelar
Melhor resposta

Try this code,

    `dbName = self._cr.dbname`

Avatar
Cancelar
Melhor resposta

Hi please try this:-

>> cursor_postgres.execute("select current_database()")

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
4
abr. 24
2346
2
fev. 23
6383
Database Odoo Resolvido
1
mar. 18
3548
1
mar. 17
3475
1
ago. 16
5128