Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
5 Risposte
35522 Visualizzazioni
Risposta migliore

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
Abbandona
Risposta migliore

Try this:

till version 9: cr.dbname

after 9: self.env.cr.dbname

Avatar
Abbandona
Risposta migliore

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

Avatar
Abbandona
Risposta migliore

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
Abbandona
Risposta migliore

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

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
giu 23
6280
0
giu 21
3782
3
ago 25
8953
5
lug 24
9631
3
gen 17
5986