[FIX] forgotten fix for fields_view_get in orm.py (moved to ir_ui_view.py): [MERGE] forward port of branch saas-2 up to revid 4987 chs@openerp.com-20131127105828-ng8z4by1tszmj9d2

bzr revid: chm@openerp.com-20131202191411-edf01rvvpngyezok
This commit is contained in:
Christophe Matthieu 2013-12-02 20:14:11 +01:00
parent 8460122209
commit 1bf1f0de8f
1 changed files with 2 additions and 2 deletions

View File

@ -319,8 +319,8 @@ class view(osv.osv):
attribute = (child.get('name'), child.text and child.text.encode('utf8') or None)
if attribute[1]:
node.set(attribute[0], attribute[1])
else:
del(node.attrib[attribute[0]])
elif attribute[0] in node.attrib:
del node.attrib[attribute[0]]
else:
sib = node.getnext()
for child in spec: