Skip to Content
Menu
This question has been flagged
5 Replies
33505 Rodiniai
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.

Portretas
Atmesti
Best Answer

Try this:

till version 9: cr.dbname

after 9: self.env.cr.dbname

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
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...
 

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
1
birž. 23
5551
0
birž. 21
3408
3
vas. 25
7101
5
liep. 24
8513
3
saus. 17
5539