Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
Is there a way to get Language name that partner is chosen in rml report? In code I only saw you can get language codes, like
en_US. But what if I need to just return name of the Language (like
English)? Didn't see that there are any relations with
res.lang object. Maybe there is some work around? Or the only way is to customize the module?
You can try something like this:
[[ ( o.partner_id.lang == 'en_US' ) and 'English' or 'OtherLang' ]]
<para>[[ ( o.partner_id.lang == 'en_US' ) and 'English' or removeParentNode( 'para' ) ]]</para> <para>[[ ( o.partner_id.lang == 'fr_FR' ) and 'FranÃ§ais' or removeParentNode( 'para' ) ]]</para> ...
This one is more suited if you have more than 2 languages.
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 9/4/13, 8:49 AM|
|Seen: 1752 times|
|Last updated: 3/16/15, 8:10 AM|