Siirry sisältöön
Menu
Sinun on rekisteröidyttävä, jotta voit olla vuorovaikutuksessa yhteisön kanssa.
Tämä kysymys on merkitty
1 Vastaa
4845 Näkymät

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
Hylkää
Paras vastaus

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
Hylkää
Tekijä

Thanks mister Zbik

Aiheeseen liittyviä artikkeleita Vastaukset Näkymät Toimenpide
2
helmik. 24
14514
2
tammik. 18
7692
0
kesäk. 16
3486
5
toukok. 23
13029
1
helmik. 24
6073