[FIX]:help defined in xml view was not considered for translation eg:on button

lp bug: https://launchpad.net/bugs/705597 fixed

bzr revid: nch@tinyerp.com-20110420131346-n5jfy76efdgnztqr
This commit is contained in:
Naresh (OpenERP) 2011-04-20 18:43:46 +05:30
parent 2030bc90f9
commit dc6973b41e
1 changed files with 4 additions and 0 deletions

View File

@ -1277,6 +1277,10 @@ class orm_template(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('help'):
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('help'))
if trans:
node.set('help', trans)
for f in node:
if children or (node.tag == 'field' and f.tag in ('filter','separator')):