'Get inherit views of the template ``key``.
returns views (which can be active or not)
``bundles=True`` returns also the asset bundles'

@api.model
def _customize_template_get_views(self, key, full=False, bundles=False):

    user_groups = set(self.env.user.groups_id)
    views = self.with_context(active_test=False)._views_get(key, bundles=bundles)
    views = views.filtered((lambda v: ((not v.groups_id) or len(user_groups.intersection(v.groups_id)))))
    return views
