Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
4256 Переглядів

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

Аватар
Відмінити
Найкраща відповідь

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

Аватар
Відмінити
Related Posts Відповіді Переглядів Дія
2
вер. 24
1895
5
серп. 19
46505
4
черв. 18
20050
0
черв. 18
3266
2
трав. 16
16916