[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
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user