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

Just activate the developer mode which can be found in "About odoo" under user at right top. Then db name will be displayed like User(Db name) at right top.

アバター
破棄
最善の回答

Try this:

till version 9: cr.dbname

after 9: self.env.cr.dbname

アバター
破棄
最善の回答

Once you've logged into a database, the URL will contain db=XXXX where XXXX is your current database.

アバター
破棄
最善の回答

if you need it from inside the code... then
db_name = self.pool.db.dbname (in v7)

or from browser look in the link like ivan explained...
 

アバター
破棄
最善の回答

In code, for version 10, its self.pool.db_name

アバター
破棄
関連投稿 返信 ビュー 活動
1
6月 23
5639
0
6月 21
3463
3
2月 25
7279
5
7月 24
8647
3
1月 17
5612