Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
5 Răspunsuri
33595 Vizualizări
Cel mai bun răspuns

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.

Imagine profil
Abandonează
Cel mai bun răspuns

Try this:

till version 9: cr.dbname

after 9: self.env.cr.dbname

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Cel mai bun răspuns

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

Imagine profil
Abandonează
Related Posts Răspunsuri Vizualizări Activitate
1
iun. 23
5571
0
iun. 21
3426
3
feb. 25
7136
5
iul. 24
8537
3
ian. 17
5570