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()") |
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
Database for my module not created
Diselesaikan
|
|
4
Apr 24
|
2123 | |
|
2
Feb 23
|
6254 | ||
Database Odoo
Diselesaikan
|
|
1
Mar 18
|
3353 | |
|
1
Mar 17
|
3348 | ||
|
1
Agu 16
|
4986 |