[FIX] whitespace lost in translation

bzr revid: fp@tinyerp.com-20120702162022-oltxv9owxhs9ubjj
This commit is contained in:
Fabien Pinckaers
2012-07-02 18:20:22 +02:00
parent a9e48f1571
commit a7071dcf1a
+2 -2
View File
@@ -1740,11 +1740,11 @@ class BaseModel(object):
if node.text and node.text.strip():
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.text.strip())
if trans:
node.text = trans
node.text = node.text.replace(node.text.strip(), trans)
if node.tail and node.tail.strip():
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.tail.strip())
if trans:
node.tail = trans
node.tail = node.tail.replace(node.tail.strip(), trans)
if node.get('string') and not result:
trans = self.pool.get('ir.translation')._get_source(cr, user, self._name, 'view', context['lang'], node.get('string'))