← Back to team overview

openerp-community team mailing list archive

Re: get partner language in Qweb reports

 

The condition should be

o.partner_id.lang.code.startswith('ar')

On 11/18/2014 10:21 AM, Mohamed M. Hagag wrote:
Dears,


I'm trying to get the partner language in the qweb reports like sales orders
using this code:


<p t-field="o.partner_id.lang"></p> #this line prints Arabic

<div t-if="o.partner_id.lang == 'Arabic'"><p>Current language is
Arabic</p></div> # this line never interpreted

Any solution ?



Regards,



_______________________________________________
Mailing list: https://launchpad.net/~openerp-community
Post to     : openerp-community@xxxxxxxxxxxxxxxxxxx
Unsubscribe : https://launchpad.net/~openerp-community
More help   : https://help.launchpad.net/ListHelp



Follow ups

References