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

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
2407
2
2月 23
6408
Database Odoo 解決済
1
3月 18
3626
1
3月 17
3537
1
8月 16
5146