Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
4103 Vistas

How can i change report language in odoo v12? I always want to print in the same language, regardless of user preference.

Avatar
Descartar
Mejor respuesta

Hi,

You can remove t-lang attribute from report template to print the report in same language

Example:

< template id="report_saleorder">
    < t t-call="web.html_container">
        < t t-foreach="docs" t-as="doc">
            < t t-call="sale.report_saleorder_document" t-lang="doc.partner_id.lang" rel="ugc">"/>
        < /t>
    < /t>
< /template>

This is sale order report template in V12. Currently it will be printed in partner language, you can remove t-lang attribute to print in the same language irrespective of partner.

Regards

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
2
sept 24
1749
5
ago 19
46353
4
jun 18
19883
0
jun 18
3177
2
may 16
16725