From 03e56ea7b6fff9b6008dccc3403c7258aea0104d Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Mon, 2 Jul 2012 09:18:41 +0200 Subject: [PATCH] [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 --- openerp/osv/orm.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openerp/osv/orm.py b/openerp/osv/orm.py index be50e093893..297f562ca0d 100644 --- a/openerp/osv/orm.py +++ b/openerp/osv/orm.py @@ -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')):