Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilità
- Magazzino
- PoS
- Progetti
- MRP
La domanda è stata contrassegnata
Try this:
till version 9: cr.dbname
after 9: self.env.cr.dbname
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.
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...
To use the external API, you need to parse the instance name, not the database name. If you're running your database on Odoo.sh, you can open the shell to view your instance name.
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!
Registrati| Post correlati | Risposte | Visualizzazioni | Attività | |
|---|---|---|---|---|
|
|
1
giu 23
|
7111 | ||
|
|
0
giu 21
|
4380 | ||
|
Staging to Production database
Risolto
|
|
3
ago 25
|
10551 | |
|
|
5
lug 24
|
10692 | ||
|
|
3
gen 17
|
6412 |