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()") |
Create an account today to enjoy exclusive features and engage with our awesome community!
РеєстраціяRelated Posts | Відповіді | Переглядів | Дія | |
---|---|---|---|---|
Database for my module not created
Вирішено
|
|
4
квіт. 24
|
2416 | |
|
2
лют. 23
|
6413 | ||
Database Odoo
Вирішено
|
|
1
бер. 18
|
3630 | |
|
1
бер. 17
|
3544 | ||
|
1
серп. 16
|
5150 |