Skip to Content
Menu
Dette spørgsmål er blevet anmeldt
1 Svar
4260 Visninger

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

Avatar
Kassér
Bedste svar

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
Kassér
Related Posts Besvarelser Visninger Aktivitet
2
sep. 24
1907
5
aug. 19
46507
4
jun. 18
20053
0
jun. 18
3269
2
maj 16
16920