Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Buchhaltung
- Lager
- PoS
- Projekte
- MRP
Diese Frage wurde gekennzeichnet
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
Diskutieren Sie gerne? Treten Sie bei, statt nur zu lesen!
Erstellen Sie heute ein Konto, um exklusive Funktionen zu nutzen und mit unserer tollen Community zu interagieren!
Registrieren| Verknüpfte Beiträge | Antworten | Ansichten | Aktivität | |
|---|---|---|---|---|
|
|
1
Juni 23
|
7085 | ||
|
|
0
Juni 21
|
4368 | ||
|
|
3
Aug. 25
|
10528 | ||
|
|
5
Juli 24
|
10661 | ||
|
|
3
Jan. 17
|
6401 |