Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Project
- MRP
La domanda è stata contrassegnata
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.
Try this:
till version 9: cr.dbname
after 9: self.env.cr.dbname
Once you've logged into a database, the URL will contain db=XXXX where XXXX is your current database.
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...
In code, for version 10, its self.pool.db_name
Ti stai godendo la conversazione? Non leggere soltanto, partecipa anche tu!
Crea un account oggi per scoprire funzionalità esclusive ed entrare a far parte della nostra fantastica community!
RegistratiPost correlati | Risposte | Visualizzazioni | Attività | |
---|---|---|---|---|
|
1
giu 23
|
5530 | ||
|
0
giu 21
|
3398 | ||
Staging to Production database
Risolto
|
|
3
feb 25
|
7078 | |
|
5
lug 24
|
8493 | ||
|
3
gen 17
|
5535 |