[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:
parent
85c466611a
commit
4e3864c1fb
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue