Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Dự án
- MRP
Câu hỏi này đã bị gắn cờ
Try this:
till version 9: cr.dbname
after 9: self.env.cr.dbname
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.
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...
To use the external API, you need to parse the instance name, not the database name. If you're running your database on Odoo.sh, you can open the shell to view your instance name.
In code, for version 10, its self.pool.db_name
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký| Bài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
|---|---|---|---|---|
|
|
1
thg 6 23
|
7098 | ||
|
|
0
thg 6 21
|
4376 | ||
|
Staging to Production database
Đã xử lý
|
|
3
thg 8 25
|
10539 | |
|
|
5
thg 7 24
|
10674 | ||
|
|
3
thg 1 17
|
6406 |