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()") |
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden| Gerelateerde posts | Antwoorden | Weergaven | Activiteit | |
|---|---|---|---|---|
|
Database for my module not created
Opgelost
|
|
4
apr. 24
|
3183 | |
|
|
2
feb. 23
|
6961 | ||
|
Database Odoo
Opgelost
|
|
1
mrt. 18
|
4164 | |
|
|
1
mrt. 17
|
4079 | ||
|
|
1
aug. 16
|
5775 |