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()") |
関連投稿 | 返信 | ビュー | 活動 | |
---|---|---|---|---|
|
4
4月 24
|
1845 | ||
|
2
2月 23
|
6118 | ||
Database Odoo
解決済
|
|
1
3月 18
|
3215 | |
|
1
3月 17
|
3274 | ||
|
1
8月 16
|
4879 |