From 4e3864c1fbacefff6c2c277d01b73f5f581a733d Mon Sep 17 00:00:00 2001 From: Xavier Morel Date: Tue, 27 May 2014 11:32:18 +0200 Subject: [PATCH] [IMP] no need to ensure an actual context if the method does not use it just forwarding the context object does not count as using it, if callees want a context they can ensure they've got one on their own --- addons/website/models/ir_ui_view.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/website/models/ir_ui_view.py b/addons/website/models/ir_ui_view.py index 1c5736c0cff..3ee663a78ef 100644 --- a/addons/website/models/ir_ui_view.py +++ b/addons/website/models/ir_ui_view.py @@ -39,9 +39,6 @@ class view(osv.osv): # Returns all views (called and inherited) related to a view # Used by translation mechanism, SEO and optional templates def _views_get(self, cr, uid, view_id, options=True, context=None, root=True): - if not context: - context = {} - try: view = self._view_obj(cr, uid, view_id, context=context) except ValueError: