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
|
2256 | ||
|
2
2月 23
|
6338 | ||
Database Odoo
已解决
|
|
1
3月 18
|
3488 | |
|
1
3月 17
|
3429 | ||
|
1
8月 16
|
5073 |