跳至內容
選單
此問題已被標幟
5 回覆
33632 瀏覽次數
最佳答案

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
5583
0
6月 21
3440
3
2月 25
7158
5
7月 24
8554
3
1月 17
5581