[IMP] don't pass in a default lang to _get_source if no value is provided in the context, caught by odo

bzr revid: xmo@openerp.com-20121008133823-vhypgddiicztai3a
This commit is contained in:
Xavier Morel 2012-10-08 15:38:23 +02:00
parent afee5b63ee
commit e8af13f0e8
1 changed files with 1 additions and 1 deletions

View File

@ -1453,7 +1453,7 @@ class BaseModel(object):
Translation = self.pool['ir.translation']
field_names = dict(
(f, (Translation._get_source(cr, uid, self._name + ',' + f, 'field',
context.get('lang', False) or 'en_US')
context.get('lang'))
or column.string or f))
for f, column in columns.iteritems())
converters = dict(