Se rendre au contenu
Menu
Cette question a été signalée
5 Réponses
34066 Vues
Meilleure réponse

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
Ignorer
Meilleure réponse

Try this:

till version 9: cr.dbname

after 9: self.env.cr.dbname

Avatar
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Meilleure réponse

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
Ignorer
Meilleure réponse

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

Avatar
Ignorer
Publications associées Réponses Vues Activité
1
juin 23
5779
0
juin 21
3544
3
févr. 25
7571
5
juil. 24
8840
3
janv. 17
5657