[FIX] reports: allow empty images with reportlab 2.5

bzr revid: chs@openerp.com-20110504095000-zaqenmjpsbl6g5ew
This commit is contained in:
Christophe Simonis
2011-05-04 11:50:00 +02:00
parent 4d3fbc4e62
commit 31eded586e
+1 -1
View File
@@ -451,7 +451,7 @@ class _rml_canvas(object):
res = utils._regex.findall(node.text)
for key in res:
newtext = eval(key, {}, self.localcontext)
node.text = newtext
node.text = newtext or ''
image_data = None
if node.text:
image_data = base64.decodestring(node.text)