[MERGE] forward port of branch saas-4 up to f68c835
[odoo/odoo.git] / openerp / addons / base / ir / ir_ui_view.py
index aab5044..c9ec51b 100644 (file)
@@ -470,7 +470,7 @@ class view(osv.osv):
                         node.getparent().remove(node)
                 elif pos == 'attributes':
                     for child in spec.getiterator('attribute'):
-                        attribute = (child.get('name'), child.text and child.text.encode('utf8') or None)
+                        attribute = (child.get('name'), child.text or None)
                         if attribute[1]:
                             node.set(attribute[0], attribute[1])
                         elif attribute[0] in node.attrib: