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

I need to print the unit of measure in english and chinese in my report

I have already put the translate in the openerp, how can I change the lang for a field in the report?

الصورة الرمزية
إهمال
أفضل إجابة

If you are reporting in QWeb you can create a translatable template.  In Odoo version 9.0 the will be making it even easier by adding a new t-lang option to the t-call QWeb operator. 

الصورة الرمزية
إهمال
أفضل إجابة

What reporting engine do you use?  For RML and webkit, the method setLang() is available to set the language.  If you just want to change the language for one field, put a setLang before it and another after to set it to a different language.  The argument needed is the locale code like 'en_US' or 'zh_CN'.

الصورة الرمزية
إهمال