Skip to Content
Menu
You need to be registered to interact with the community.
This question has been flagged
5 Odgovori
33626 Prikazi
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
Opusti
Best Answer

Try this:

till version 9: cr.dbname

after 9: self.env.cr.dbname

Avatar
Opusti
Best Answer

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

Avatar
Opusti
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
Opusti
Best Answer

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

Avatar
Opusti
Related Posts Odgovori Prikazi Aktivnost
1
jun. 23
5581
0
jun. 21
3438
3
feb. 25
7156
5
jul. 24
8552
3
jan. 17
5581