[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:
Xavier Morel 2014-05-27 11:32:18 +02:00
parent 85c466611a
commit 4e3864c1fb
1 changed files with 0 additions and 3 deletions

View File

@ -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: