Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
2 Respostas
5332 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
3202
2
fev. 23
6982
Database Odoo Resolvido
1
mar. 18
4194
1
mar. 17
4114
1
ago. 16
5803