[MERGE] placeholder translation

bzr revid: al@openerp.com-20120627103106-wclqfoesq9b2subb
This commit is contained in:
Antony Lesuisse 2012-06-27 12:31:06 +02:00
commit 1624d47aeb
1 changed files with 4 additions and 0 deletions

View File

@ -1762,6 +1762,10 @@ class BaseModel(object):
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('help'))
if trans:
node.set('help', trans)
if node.get('placeholder'):
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('placeholder'))
if trans:
node.set('placeholder', trans)
for f in node:
if children or (node.tag == 'field' and f.tag in ('filter','separator')):