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()") |
관련 게시물 | 답글 | 화면 | 활동 | |
---|---|---|---|---|
|
4
4월 24
|
2375 | ||
|
2
2월 23
|
6390 | ||
Database Odoo
해결 완료
|
|
1
3월 18
|
3590 | |
|
1
3월 17
|
3499 | ||
|
1
8월 16
|
5137 |