Hi,
I would like to know if there is a way and how to proceed to programmatically know what is the current database name from within module scripts.
Thanks.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
Hi,
I would like to know if there is a way and how to proceed to programmatically know what is the current database name from within module scripts.
Thanks.
Try this code,
`dbName = self._cr.dbname`
Hi please try this:-
>> cursor_postgres.execute("select current_database()") |
Luo tili jo tänään nauttiaksesi yksinoikeusominaisuuksista ja osallistuaksesi mahtavaan yhteisöömme!
Rekisteröidy| Aiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
|---|---|---|---|---|
|
Database for my module not created
Ratkaistu
|
|
4
huhtik. 24
|
3192 | |
|
|
2
helmik. 23
|
6968 | ||
|
Database Odoo
Ratkaistu
|
|
1
maalisk. 18
|
4178 | |
|
|
1
maalisk. 17
|
4090 | ||
|
|
1
elok. 16
|
5792 |