summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorJulien Thewys <jth@openerp.com>2010-08-31 14:17:10 +0200
committerJulien Thewys <jth@openerp.com>2010-08-31 14:17:10 +0200
commit2adff8ecf5c1fcd78320f5f1c165efd3e6adcbcc (patch)
tree2ad8295772dacb45884e60bb474d3008dd822a43 /bin
parent0b9653916a50a872296977e4d0ff1f46095af9ed (diff)
parent54b19dc00832c195dcf6c74cc084b40ebc5e1daf (diff)
[MERGE] fixes the construction of a XML search string containing single quotes
bzr revid: jth@openerp.com-20100831121710-cwk33mcvyhcgir5g
Diffstat (limited to 'bin')
-rw-r--r--bin/osv/orm.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/osv/orm.py b/bin/osv/orm.py
index 780c8632f63..ad9ca483963 100644
--- a/bin/osv/orm.py
+++ b/bin/osv/orm.py
@@ -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)