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
Odoo Training Center
|Asked: 9/4/13, 8:49 AM|
|Seen: 1968 times|
|Last updated: 3/16/15, 8:10 AM|