else:
res = map(lambda x: {'id':x}, ids)
- if context.get('lang', False):
+ if context.get('lang', False) and context['lang'] != 'en_EN':
for f in fields_pre:
if self._columns[f].translate:
ids = map(lambda x: x['id'], res)
upd_todo=[]
updend=[]
direct = []
- totranslate = context.get('lang', False) and (context['lang'] != 'en')
+ totranslate = context.get('lang', False) and (context['lang'] != 'en_EN')
for field in vals:
if field in self._columns:
if self._columns[field]._classic_write:
res[f][arg] = getattr(self._columns[f], arg)
# translate the field label
- if context.get('lang', False):
+ if context.get('lang', False) and context['lang'] != 'en_EN':
res_trans = self.pool.get('ir.translation')._get_source(cr, user, self._name+','+f, 'field', context['lang'])
if res_trans:
res[f]['string'] = res_trans
sel = self._columns[f].selection
# translate each selection option
- if context.get('lang', False):
+ if context.get('lang', False) and context['lang'] != 'en_EN':
sel2 = []
for (key,val) in sel:
val2 = self.pool.get('ir.translation')._get_source(cr, user, self._name+','+f, 'selection', context['lang'], val)