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öidyAiheeseen liittyviä artikkeleita | Vastaukset | Näkymät | Toimenpide | |
---|---|---|---|---|
Database for my module not created
Ratkaistu
|
|
4
huhtik. 24
|
2351 | |
|
2
helmik. 23
|
6384 | ||
Database Odoo
Ratkaistu
|
|
1
maalisk. 18
|
3557 | |
|
1
maalisk. 17
|
3475 | ||
|
1
elok. 16
|
5130 |