From e07d4252ebc2e11408b46fcaa8b67fe35221840f Mon Sep 17 00:00:00 2001 From: "Sanjay Gohel (Open ERP)" Date: Tue, 5 Jun 2012 17:08:39 +0530 Subject: [PATCH] [IMP]:add condition for context in report_webkit for fields view get bzr revid: sgo@tinyerp.com-20120605113839-cum83coqtg6ji8jh --- addons/report_webkit/wizard/report_webkit_actions.py | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/report_webkit/wizard/report_webkit_actions.py b/addons/report_webkit/wizard/report_webkit_actions.py index bb2c5312441..f6b920944d4 100644 --- a/addons/report_webkit/wizard/report_webkit_actions.py +++ b/addons/report_webkit/wizard/report_webkit_actions.py @@ -53,6 +53,7 @@ class report_webkit_actions(osv.osv_memory): @param context: A standard dictionary @return: New arch of view. """ + if not context: context = {} res = super(report_webkit_actions, self).fields_view_get(cr, uid, view_id=view_id, view_type=view_type, context=context, toolbar=toolbar,submenu=False) record_id = context and context.get('active_id', False) or False active_model = context.get('active_model')