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
أبريل 24
|
1820 | ||
|
2
فبراير 23
|
6095 | ||
Database Odoo
تم الحل
|
|
1
مارس 18
|
3202 | |
|
1
مارس 17
|
3255 | ||
|
1
أغسطس 16
|
4864 |