Skip to Content
Menu
This question has been flagged
1 Atsakyti
4268 Rodiniai

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

Portretas
Atmesti
Best Answer

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

Portretas
Atmesti
Related Posts Replies Rodiniai Veikla
2
rugs. 24
1910
5
rugp. 19
46515
4
birž. 18
20058
0
birž. 18
3279
2
geg. 16
16936