diff --git a/sale_reporting.py b/sale_reporting.py index 28c1d30d8b..7bfa980571 100644 --- a/sale_reporting.py +++ b/sale_reporting.py @@ -167,7 +167,7 @@ class Abstract(ModelSQL): name = name[:-len('_trend')] if pygal: chart = pygal.Line() - chart.add('', [getattr(ts, name) if ts else None + chart.add('', [getattr(ts, name) if ts else 0 for ts in self.time_series_all]) return chart.render_sparktext()