Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
4230 มุมมอง

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
1862
How do i create report in Qweb? แก้ไขแล้ว
5
ส.ค. 19
46482
4
มิ.ย. 18
20031
0
มิ.ย. 18
3254
What is QWeb (Odoo's reporting engine)? แก้ไขแล้ว
2
พ.ค. 16
16883