تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
4786 أدوات العرض

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

المنشورات ذات الصلة الردود أدوات العرض النشاط
2
فبراير 24
14460
2
يناير 18
7641
0
يونيو 16
3438
5
مايو 23
12957
1
فبراير 24
6004