Zum Inhalt springen
Menü
Sie müssen registriert sein, um mit der Community zu interagieren.
Diese Frage wurde gekennzeichnet
1 Antworten
4552 Ansichten

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

Avatar
Verwerfen
Beste Antwort

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.

Avatar
Verwerfen
Autor

Thanks mister Zbik

Verknüpfte Beiträge Antworten Ansichten Aktivität
2
Feb. 24
14169
2
Jan. 18
7480
0
Juni 16
3280
5
Mai 23
12661
1
Feb. 24
5793