コンテンツへスキップ
メニュー
この質問にフラグが付けられました
2 返信
4342 ビュー

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