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
- Accounting
- Inventory
- PoS
- Project
- MRP
This question has been flagged
1
Reply
24
Views
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
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up