From 968fe9815f99c0a397845348f943df13741e989d Mon Sep 17 00:00:00 2001 From: Naresh Choksy Date: Mon, 4 May 2009 14:42:26 +0530 Subject: [PATCH] bugfix:reports when no color style found bzr revid: nch@tinyerp.com-20090504091226-knu1wtdmttpi7f1b --- bin/report/render/rml2pdf/color.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/report/render/rml2pdf/color.py b/bin/report/render/rml2pdf/color.py index 3f3caf7fa43..237356f47ec 100644 --- a/bin/report/render/rml2pdf/color.py +++ b/bin/report/render/rml2pdf/color.py @@ -1,7 +1,7 @@ # -*- encoding: utf-8 -*- ############################################################################## # -# OpenERP, Open Source Management Solution +# OpenERP, Open Source Management Solution # Copyright (C) 2004-2009 Tiny SPRL (). All Rights Reserved # $Id$ # @@ -29,6 +29,8 @@ regex_t = re.compile('\(([0-9\.]*),([0-9\.]*),([0-9\.]*)\)') regex_h = re.compile('#([0-9a-zA-Z][0-9a-zA-Z])([0-9a-zA-Z][0-9a-zA-Z])([0-9a-zA-Z][0-9a-zA-Z])') def get(col_str): + if col_str == None: + col_str = '' global allcols if col_str in allcols.keys(): return allcols[col_str]