跳至内容
菜单
此问题已终结
5 回复
33823 查看
最佳答案

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
5658
0
6月 21
3474
3
2月 25
7334
5
7月 24
8684
3
1月 17
5623