Skip to Content
Menu
This question has been flagged
5 Replies
31151 Views
Best Answer

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
Discard
Best Answer

Try this:

till version 9: cr.dbname

after 9: self.env.cr.dbname

Avatar
Discard
Best Answer

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

Avatar
Discard
Best Answer

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
Discard
Best Answer

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

Avatar
Discard
Related Posts Replies Views Activity
1
Jun 23
4611
0
Jun 21
2841
3
Feb 25
5542
5
Jul 24
7313
3
Jan 17
5005