'Search dependencies just for information. It will not catch 100%
of dependencies and False positive is more than possible
Each module could add dependences in this dict
:returns a dictionnary where key is the \'categorie\' of object related to the given
view, and the value is the list of text and link to the resource using given page'

@api.model
def page_search_dependencies(self, view_id=False):

    dependencies = {}
    if (not view_id):
        return dependencies
    view = self.env['ir.ui.view'].browse(view_id)
    website_id = self._context.get('website_id')
    name = view.key.replace('website.', '')
    fullname = ('website.%s' % name)
    if view.page:
        page_search_dom = ['|', ('website_id', '=', website_id), ('website_id', '=', False), '|', ('arch_db', 'ilike', ('/page/%s' % name)), ('arch_db', 'ilike', ('/page/%s' % fullname))]
        page_key = _('Page')
        pages = self.env['ir.ui.view'].search(page_search_dom)
        for page in pages:
            dependencies.setdefault(page_key, [])
            if page.page:
                dependencies[page_key].append({'text': (_('Page    <b>%s</b>    contains    a    link    to    this    page') % page.key), 'link': ('/page/%s' % page.key)})
            else:
                dependencies[page_key].append({'text': (_('Template    <b>%s    (id:%s)</b>    contains    a    link    to    this    page') % (page.key, page.id)), 'link': '#'})
        menu_search_dom = ['|', ('website_id', '=', website_id), ('website_id', '=', False), '|', ('url', 'ilike', ('/page/%s' % name)), ('url', 'ilike', ('/page/%s' % fullname))]
        menu_key = _('Menu')
        menus = self.env['website.menu'].search(menu_search_dom)
        for menu in menus:
            dependencies.setdefault(menu_key, []).append({'text': (_('This    page    is    in    the    menu    <b>%s</b>') % menu.name), 'link': False})
    return dependencies
