Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
4992 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
2770
2
fev. 23
6657
Database Odoo Resolvido
1
mar. 18
3865
1
mar. 17
3777
1
ago. 16
5361