'Adds a view or menu to the backend, model view_menu
param name:
name of the view menu to add'

def add_view_menu(self, name):

    view_menu = self.find_view_menu(name)
    if (view_menu is None):
        try:
            view_menu = self.viewmenu_model(name=name)
            view_menu.save()
            return view_menu
        except Exception as e:
            log.error(c.LOGMSG_ERR_SEC_ADD_VIEWMENU.format(str(e)))
    return view_menu
