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
- Contabilidad
- Inventario
- PoS
- Proyecto
- MRP
Se marcó esta pregunta
2
Respuestas
86
Vistas
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
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse