[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:
parent
afee5b63ee
commit
e8af13f0e8
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue