Ir al contenido
Menú
Se marcó esta pregunta
5 Respuestas
33456 Vistas
Mejor respuesta

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
Descartar
Mejor respuesta

Try this:

till version 9: cr.dbname

after 9: self.env.cr.dbname

Avatar
Descartar
Mejor respuesta

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

Avatar
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

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

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
jun 23
5530
0
jun 21
3397
3
feb 25
7075
5
jul 24
8490
3
ene 17
5533