[MERGE] fixes the construction of a XML search string containing single quotes
bzr revid: jth@openerp.com-20100831121710-cwk33mcvyhcgir5g
This commit is contained in:
+1
-1
@@ -1496,7 +1496,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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user