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()") |
สร้างบัญชีวันนี้เพื่อเพลิดเพลินไปกับฟีเจอร์พิเศษและมีส่วนร่วมกับคอมมูนิตี้ที่ยอดเยี่ยมของเรา!
ลงชื่อRelated Posts | ตอบกลับ | มุมมอง | กิจกรรม | |
---|---|---|---|---|
Database for my module not created
แก้ไขแล้ว
|
|
4
เม.ย. 24
|
2348 | |
|
2
ก.พ. 23
|
6383 | ||
Database Odoo
แก้ไขแล้ว
|
|
1
มี.ค. 18
|
3552 | |
|
1
มี.ค. 17
|
3475 | ||
|
1
ส.ค. 16
|
5130 |