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)