Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
4258 Lượt xem

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

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 9 24
1903
5
thg 8 19
46506
4
thg 6 18
20052
0
thg 6 18
3267
2
thg 5 16
16919