[FIX] using the newly translated string might be a better idea than putting the old one again

todo: stop committing at 9AM, still not woken up

bzr revid: xmo@openerp.com-20120702071841-h0th114l87iphsty
This commit is contained in:
Xavier Morel
2012-07-02 09:18:41 +02:00
parent 3589e1d0f4
commit 03e56ea7b6
+1 -1
View File
@@ -1761,7 +1761,7 @@ class BaseModel(object):
translation = self.pool['ir.translation']._get_source(
cr, user, self._name, 'view', context['lang'], attr)
if translation:
node.set(translatable, attr)
node.set(translatable, translation)
for f in node:
if children or (node.tag == 'field' and f.tag in ('filter','separator')):