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
- Boekhouding
- Voorraad
- PoS
- Project
- MRP
Deze vraag is gerapporteerd
2
Antwoorden
178
Weergaven
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
Geniet je van het gesprek? Blijf niet alleen lezen, doe ook mee!
Maak vandaag nog een account aan om te profiteren van exclusieve functies en deel uit te maken van onze geweldige community!
Aanmelden