[CHG] set lang to False instead of en_US (already being the default language), reducing the places where this default value is set

bzr revid: guewen.baconnier@camptocamp.com-20131228203801-3z6g1bb0ggfio5x0
This commit is contained in:
Guewen Baconnier 2013-12-28 21:38:01 +01:00
parent 226ed9abea
commit 780e1548c0
1 changed files with 1 additions and 1 deletions

View File

@ -4169,7 +4169,7 @@ class BaseModel(object):
src_trans = vals[f]
# Inserting value to DB
ctx = context.copy()
ctx['lang'] = 'en_US'
ctx['lang'] = False
self.write(cr, user, ids, {f: vals[f]}, context=ctx)
self.pool.get('ir.translation')._set_ids(cr, user, self._name+','+f, 'model', context['lang'], ids, vals[f], src_trans)