Dear experts,
I was using setLang in the old RML based reporting engine to force the locale of the printed reports, but I cannot use it anymore on the new reporting engine.
I tried with <t t-esc="setLang('de_DE')"/> but I get the error:
QWebException: ""'NoneType' object is not callable" while evaluating
"setLang('de_DE')""
How can I set the locale with the new reporting engine?
Thank you and regards,
Giulio
Hi zbik, thank you for your answer. How can I force a language for translate_doc though? I would like for instance to force the document to be produced always with the German (de_DE) locale. Any parameter I pass as the third parameter to translate_doc is used as an accessor to a field of the object doc. I see in the coding of translate_doc that it checks for a translatable value in the context (if false, apparently the language can be forced), but I do not understand how this value in the context could be set.. Thank you and regards, Giulio