Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilitate
- Inventar
- PoS
- Proiect
- MRP
Această întrebare a fost marcată
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Înscrie-te| Related Posts | Răspunsuri | Vizualizări | Activitate | |
|---|---|---|---|---|
|
|
1
iun. 23
|
7093 | ||
|
|
0
iun. 21
|
4376 | ||
|
Staging to Production database
Rezolvat
|
|
3
aug. 25
|
10537 | |
|
|
5
iul. 24
|
10669 | ||
|
|
3
ian. 17
|
6403 |