From 0435bc6646de6e92bd519a0db29650a7f30dd7be Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Fri, 30 May 2008 08:55:05 +0200 Subject: [PATCH] Fix context = None for issue44 --- trytond/report/report.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/trytond/report/report.py b/trytond/report/report.py index 79bc76a1fc..88e9c7610e 100644 --- a/trytond/report/report.py +++ b/trytond/report/report.py @@ -199,6 +199,8 @@ class Report(object): super(Report, self).__init__() def execute(self, cursor, user, ids, datas, context=None): + if context is None: + context = {} action_report_obj = self.pool.get('ir.action.report') action_report_ids = action_report_obj.search(cursor, user, [ ('report_name', '=', self._name)