コンテンツへスキップ
メニュー
この質問にフラグが付けられました
1 返信
4266 ビュー

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
1909
5
8月 19
46510
4
6月 18
20057
0
6月 18
3277
2
5月 16
16934