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

Hello all,

I have made many searches in Odoo 8 files.

I don't understand why so many qweb report can be translate WITHOUT using the translate_doc method...

For example, the report "general ledger" is translated in the logged in user language. But no trace of the translate_doc method in the template...

Few reports are translated with the translate_doc method.

So, could you tell me how the "general ledger" report, for example, can be translated in the logged in user language?

Thanks

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

In standard all reports are translated in the logged in user language.  Another situation is when you need to translate the report into another language, not necessarily logged in user (for example invoice and partner_id.lang). For this case  translate_doc helper is dedicated.

อวตาร
ละทิ้ง
ผู้เขียน

Thanks mister Zbik

Related Posts ตอบกลับ มุมมอง กิจกรรม
how to get the logged user แก้ไขแล้ว
2
ก.พ. 24
14062
2
ม.ค. 18
7432
0
มิ.ย. 16
3255
5
พ.ค. 23
12571
1
ก.พ. 24
5745