Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Contabilidad
- Inventario
- PoS
- Proyecto
- MRP
Se marcó esta pregunta
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
|
1
jun 23
|
7111 | ||
|
|
0
jun 21
|
4380 | ||
|
Staging to Production database
Resuelto
|
|
3
ago 25
|
10551 | |
|
|
5
jul 24
|
10691 | ||
|
|
3
ene 17
|
6412 |