[FIX]Fixed the issue of translation for node which has avg.
bzr revid: msh@tinyerp.com-20120419040409-ecj6vxddibt9l5vu
This commit is contained in:
@@ -1728,6 +1728,10 @@ class BaseModel(object):
|
||||
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('sum'))
|
||||
if trans:
|
||||
node.set('sum', trans)
|
||||
if node.get('avg'):
|
||||
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('avg'))
|
||||
if trans:
|
||||
node.set('avg', trans)
|
||||
if node.get('help'):
|
||||
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('help'))
|
||||
if trans:
|
||||
|
||||
Reference in New Issue
Block a user