From 4b82cf666f4e75b08899728c429eedc75b206ba4 Mon Sep 17 00:00:00 2001 From: Simon Lejeune Date: Tue, 9 Sep 2014 14:36:00 +0200 Subject: [PATCH] [FIX] Report: search associated qweb views: do not forward context The context may be inconsistent (for instance, containing a group_by associated to another model). The client will take care of keeping it consistent. Fixes issue #1768 --- addons/report/models/report_paperformat.py | 3 --- 1 file changed, 3 deletions(-) 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: