Here in my custom module that make report view, can anyone know how to fix this issue, it does not take translations of strings basedon partner language, it takes only hard code strings, maybe context does not get anything? or maybe something with t-call , need to do something else?
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
- Dự án
- MRP
Câu hỏi này đã bị gắn cờ
2
Trả lời
196
Lượt xem
You mean this:
???
Hi,
If you want to change the report language to the customer’s language, follow the standard Odoo pattern inside the web.external_layout call.
Please use this structure:
<!-- Your remaining report content goes here -->
<t t-call="web.external_layout"> <t t-set="o" t-value="o.with_context(lang=o.partner_id.lang)" /><!-- Your remaining report content goes here --> </t>
I hope it helps
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ý