跳至内容
菜单
此问题已终结
1 回复
4288 查看

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

形象
丢弃
相关帖文 回复 查看 活动
2
9月 24
1940
5
8月 19
46543
4
6月 18
20108
0
6月 18
3319
2
5月 16
16976