Pular para o conteúdo
Menu
Esta pergunta foi sinalizada
5 Respostas
33564 Visualizações
Melhor resposta

Just activate the developer mode which can be found in "About odoo" under user at right top. Then db name will be displayed like User(Db name) at right top.

Avatar
Cancelar
Melhor resposta

Try this:

till version 9: cr.dbname

after 9: self.env.cr.dbname

Avatar
Cancelar
Melhor resposta

Once you've logged into a database, the URL will contain db=XXXX where XXXX is your current database.

Avatar
Cancelar
Melhor resposta

if you need it from inside the code... then
db_name = self.pool.db.dbname (in v7)

or from browser look in the link like ivan explained...
 

Avatar
Cancelar
Melhor resposta

In code, for version 10, its self.pool.db_name

Avatar
Cancelar
Publicações relacionadas Respostas Visualizações Atividade
1
jun. 23
5564
0
jun. 21
3418
3
fev. 25
7128
5
jul. 24
8531
3
jan. 17
5560