Skip to content
Snippets Groups Projects
Commit 66d89348 authored by Xavier Morel's avatar Xavier Morel
Browse files

[FIX] correctly handle get_inheriting_views_arch when uid=None

parent 0ea465e8
No related branches found
No related tags found
No related merge requests found
......@@ -265,7 +265,8 @@ class view(osv.osv):
:return: [(view_arch,view_id), ...]
"""
user_groups = frozenset(self.pool.get('res.users').browse(cr, 1, uid, context).groups_id)
user = self.pool['res.users'].browse(cr, 1, uid, context=context)
user_groups = frozenset(user.groups_id or ())
check_view_ids = context and context.get('check_view_ids') or (0,)
conditions = [['inherit_id', '=', view_id], ['model', '=', model]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment