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()") |
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj się| Powiązane posty | Odpowiedzi | Widoki | Czynność | |
|---|---|---|---|---|
|
Database for my module not created
Rozwiązane
|
|
4
kwi 24
|
3160 | |
|
|
2
lut 23
|
6949 | ||
|
Database Odoo
Rozwiązane
|
|
1
mar 18
|
4138 | |
|
|
1
mar 17
|
4055 | ||
|
|
1
sie 16
|
5736 |