[FIX]Fixed the issue of translation for node which has avg.

bzr revid: msh@tinyerp.com-20120419040409-ecj6vxddibt9l5vu
This commit is contained in:
msh-openerp
2012-04-19 09:34:09 +05:30
parent 8f5b3e249e
commit 22681ae55f
+4
View File
@@ -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: