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.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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()") |
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 | |
---|---|---|---|---|
Database for my module not created
Đã xử lý
|
|
4
thg 4 24
|
2335 | |
|
2
thg 2 23
|
6377 | ||
Database Odoo
Đã xử lý
|
|
1
thg 3 18
|
3544 | |
|
1
thg 3 17
|
3468 | ||
|
1
thg 8 16
|
5120 |