diff --git a/addons/report/models/report_paperformat.py b/addons/report/models/report_paperformat.py index 41a5e0a9950..0d1dd472298 100644 --- a/addons/report/models/report_paperformat.py +++ b/addons/report/models/report_paperformat.py @@ -143,13 +143,10 @@ class ir_actions_report(osv.Model): """Used in the ir.actions.report.xml form view in order to search naively after the view(s) used in the rendering. """ - if context is None: - context = {} try: report_name = self.browse(cr, uid, ids[0], context).report_name act_window_obj = self.pool.get('ir.actions.act_window') view_action = act_window_obj.for_xml_id(cr, uid, 'base', 'action_ui_view', context=context) - view_action['context'] = context view_action['domain'] = [('name', 'ilike', report_name.split('.')[1]), ('type', '=', 'qweb')] return view_action except: