[FIX] XML search string containing single quotes

bzr revid: olivier.ligot@groupes.be-20100806095304-yu7gkygfvenwpqy0
This commit is contained in:
Olivier Ligot 2010-08-06 11:53:04 +02:00
parent d73bb422f4
commit 54b19dc008
1 changed files with 1 additions and 1 deletions

View File

@ -1419,7 +1419,7 @@ class orm_template(object):
view = self.fields_view_get(cr, uid, False, 'form', context)
root = etree.fromstring(encode(view['arch']))
res = etree.XML("<search string='%s'></search>" % root.get("string", ""))
res = etree.XML("""<search string="%s"></search>""" % root.get("string", ""))
node = etree.Element("group")
res.append(node)