[IMP] qweb: fix for many2one with None value

bzr revid: chm@openerp.com-20130730150905-9qh0y5geug9uz2v9
This commit is contained in:
Christophe Matthieu
2013-07-30 17:09:05 +02:00
parent 27b69126d2
commit 443129ca7a
+1 -1
View File
@@ -292,7 +292,7 @@ class QWebXml(object):
inner = getattr(record, field)
if e.tagName != 't':
g_att += ''.join(
' %s="%s"' % (name, cgi.escape(value, True))
' %s="%s"' % (name, cgi.escape(str(value), True))
for name, value in [
('data-oe-model', record._model._name),
('data-oe-id', str(record.id)),