Hi,
I want to check database name in qweb template odoo 10, how I can get it, please help if anyone know.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
5
Trả lời
3932
Lượt xem
Hello Nalini
You can try with following code in qweb report.
<t t-esc='doc.env.cr.dbname'/>
correct me if i am wrong !
Thank you
Yes it helped.. Thanks alot
Hi Nalini,
In Normal we can use this method for find database name
self.env.cr.dbname
for qweb replace self by request
<t t-esc='request.env.cr.dbname'/>
Thanks a lot.. it helped me..
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng ký
Hi Nalini,
in Which Qweb Template you need Database name ?
I have added 1 report for printing journal entry .. in that I want to fetch database name. But i don't know how we can get it in template.