Ir al contenido
Menú
Se marcó esta pregunta
5 Respuestas
36547 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
6774
0
jun 21
4174
3
ago 25
9872
5
jul 24
10246
3
ene 17
6210