diff --git a/openerp/report/report_sxw.py b/openerp/report/report_sxw.py index b1f1e3d5891..325690205ef 100644 --- a/openerp/report/report_sxw.py +++ b/openerp/report/report_sxw.py @@ -189,6 +189,8 @@ class rml_parse(object): return newtag, attrs def _ellipsis(self, char, size=100, truncation_str='...'): + if not char: + return '' if len(char) <= size: return char return char[:size-len(truncation_str)] + truncation_str