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!
Înscrie-teRelated Posts | Răspunsuri | Vizualizări | Activitate | |
---|---|---|---|---|
Database for my module not created
Rezolvat
|
|
4
apr. 24
|
2190 | |
|
2
feb. 23
|
6298 | ||
Database Odoo
Rezolvat
|
|
1
mar. 18
|
3425 | |
|
1
mar. 17
|
3396 | ||
|
1
aug. 16
|
5032 |