How to fetch current logged in database name at server side in particular class??
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- Müşteri İlişkileri Yönetimi
- e-Commerce
- Muhasebe
- Envanter
- PoS
- Project
- MRP
This question has been flagged
The database cursor should have it. Try:
cr.dbname
but for that i have to inherit osv and the place(http_server.py) where i need dbname is already implemented class and used in many classes,,,so if i am trying to inherit osv.osv then it gives me::TypeError: Error when calling the metaclass bases
Could you edit your post to include more context? Paste some code and such.
Hello Allison,,thank you so much for your reply but i have done what i want, i have fetched db_name from tools.config['db_name']....Thanxxx
Hello Nirav, I use db_name=tools.config['db_name'] but the return value is False. could you please tell me how?
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Üye OlRelated Posts | Cevaplar | Görünümler | Aktivite | |
---|---|---|---|---|
|
0
Şub 25
|
567 | ||
|
2
Kas 24
|
4447 | ||
|
2
Eki 24
|
1757 | ||
|
2
Ağu 24
|
1042 | ||
|
3
Tem 24
|
7324 |