Ir al contenido
Odoo Menú
  • Identificarse
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • TPV para tiendas
    • TPV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en directo
    • e-learning
    Cadena de suministro
    • Inventario
    • Fabricación
    • PLM
    • Compra
    • Mantenimiento
    • Calidad
    Recursos Humanos
    • Empleados
    • Reclutamiento
    • Ausencias
    • Evaluación
    • Referencias
    • Flota
    Marketing
    • Marketing social
    • Marketing por correo electrónico
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyecto
    • Partes de horas
    • Servicio de campo
    • Servicio de asistencia
    • Planificación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Conocimientos
    • WhatsApp
    Aplicaciones de terceros Studio de Odoo Plataforma de Odoo Cloud
  • Industrias
    Comercio al por menor
    • Librería
    • Tienda de ropa
    • Tienda de muebles
    • Tienda de ultramarinos
    • Ferretería
    • Juguetería
    Alimentación y hostelería
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidor de bebidas
    • Hotel
    Inmueble
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión inmobiliaria
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Empresa contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Fabricación
    • Textil
    • Metal
    • Muebles
    • Alimentos
    • Cervecería
    • Regalos de empresas
    Salud y bienestar
    • Club deportivo
    • Óptica
    • Gimnasio
    • Terapeutas
    • Farmacia
    • Peluquería
    Oficios
    • Handyman
    • Hardware y soporte técnico
    • Sistemas de energía solar
    • Zapatero
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin ánimo de lucro
    • Agencia de protección del medio ambiente
    • Alquiler de paneles publicitarios
    • Estudio fotográfico
    • Alquiler de bicicletas
    • Distribuidor de software
    Explorar todos los sectores
  • Comunidad
    Aprender
    • Tutoriales
    • Documentación
    • Certificaciones
    • Formación
    • Blog
    • Podcast
    Potenciar la educación
    • Programa de formación
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtener el software
    • Descargar
    • Comparar ediciones
    • Versiones
    Colaborar
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Convertirse en partner
    • Servicios para partners
    • Registrar tu empresa contable
    Obtener servicios
    • Encontrar un partner
    • Encontrar un asesor fiscal
    • Contacta con un experto
    • Servicios de implementación
    • Referencias de clientes
    • Ayuda
    • Actualizaciones
    GitHub YouTube Twitter Linkedin Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicitar una demostración
  • Precios
  • Ayuda

Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:

  • CRM
  • e-Commerce
  • Contabilidad
  • Inventario
  • PoS
  • Proyecto
  • MRP
All apps
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Debe estar registrado para interactuar con la comunidad.
Todas las publicaciones Personas Insignias
Etiquetas (Ver todo)
odoo accounting v14 pos v15
Acerca de este foro
Ayuda

How to hide searchbar and pager for specific view

Suscribirse

Reciba una notificación cuando haya actividad en esta publicación

Se marcó esta pregunta
hidepagersearchbar
2 Respuestas
14855 Vistas
Avatar
youring

How to hide the searchbar and pager for a particular model and specific view?

By a custom javascript module? I noticed code cited below in the views.js in the web module. tried to change the board.board to res.partner for example and view_mode to view_id ... but didn't work. Any help appreciated.


    instance.web.ViewManagerAction = instance.web.ViewManager.extend({
        template:"ViewManagerAction",
        /**
        * @constructs instance.web.ViewManagerAction
        * @extends instance.web.ViewManager
        *
        * @param {instance.web.ActionManager} parent parent object/widget
        * @param {Object} action descriptor for the action this viewmanager needs to manage its views.
        */
        init: function(parent, action) {
            // dataset initialization will take the session from ``this``, so if we
            // do not have it yet (and we don't, because we've not called our own
            // ``_super()``) rpc requests will blow up.
            var flags = action.flags || {};
            if (!('auto_search' in flags)) {
                flags.auto_search = action.auto_search !== false;
            }
            if (action.res_model == 'board.board' && action.view_mode === 'form') {
                // Special case for Dashboards
                _.extend(flags, {
                    views_switcher : false,
                    display_title : false,
                    search_view : false,
                    pager : false,
                    sidebar : false,
                    action_buttons : false
                });
            }

0
Avatar
Descartar
Avatar
Thomas Fossoul
Mejor respuesta

I had a similar need on a project. You can download this module : https://www.odoo.com/apps/6.1/ir_action_flags_ept/

The module is on a 6.1 version. I upgrade it to a v8 version (give me your email if you want it..). You can spécify on the context of your action these following options : 

'selectable': False,    : hide the checkbox on the left on a list view which allow you to select row..
'sidebar': False,       : the menu on the middle disapear.
'radio': True,          : the checkbox are replaced by a radio button
'deletable': False,     : Not sure this one works..
'action_buttons': False : the create/edit/cancel button disapear.

Some other not tested :

        action.flags = {

            search_view : false,
           views_switcher : false,
            pager: false,
            low_profile: true,
            display_title: false,
            list: {
                selectable: false
            }
        };

 

2
Avatar
Descartar
youring
Autor

Hi Thomas, thanks very much. Please send to youring at gmail dot com. Appreciated!

Nathaniel

Hi! May I request for the version 8 or higher module of this? Please send to nathaniel dot aquino28 at gmail dot com. Thank you!

Avatar
Juan José Scarafía
Mejor respuesta

Hi youring,

Hide filter and Odoo paging is something that can not be possible in a 99%. You can save defaults search when you get in an specific view using "Custom Filters".

Regards,

Juan José - Ing ADHOC

0
Avatar
Descartar
youring
Autor

Hi Juan. Thanks for your comments. I agree its probably not possible by configuration. But I believe it can be done by a custom web module. Maybe my question should be changed. see updates.

¿Le interesa esta conversación? ¡Participe en ella!

Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.

Inscribirse
Publicaciones relacionadas Respuestas Vistas Actividad
Copy/Paste Excel column of barcodes to search
searchbar
Avatar
Avatar
1
jun 22
4185
Hided tree view .Such employees can only see their own annotations, and managers can see all the annotation
hide
Avatar
Avatar
2
ene 17
3790
Searching generic info not by fields
searchbar Contacts
Avatar
Avatar
Avatar
2
jul 25
1150
How to remove the single product search bar
searchbar productpage
Avatar
Avatar
1
jul 24
1650
Firefox search bar space issue
searchbar odoo8.0
Avatar
1
feb 24
1910
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento Odoo.sh
  • Ayuda
  • Actualizar
  • Desarrollos personalizados
  • Educación
  • Encontrar un asesor fiscal
  • Encontrar un partner
  • Convertirse en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contacta con nosotros
  • Puestos de trabajo
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • Información legal • Privacidad
  • Seguridad
الْعَرَبيّة Català 简体中文 繁體中文 (台灣) Čeština Dansk Nederlands English Suomi Français Deutsch हिंदी Bahasa Indonesia Italiano 日本語 한국어 (KR) Lietuvių kalba Język polski Português (BR) română русский язык Slovenský jazyk slovenščina Español (América Latina) Español ภาษาไทย Türkçe українська Tiếng Việt

Odoo es un conjunto de aplicaciones de código abierto que cubren todas las necesidades de tu empresa: CRM, comercio electrónico, contabilidad, inventario, punto de venta, gestión de proyectos, etc.

La propuesta única de valor de Odoo es ser muy fácil de usar y totalmente integrado.

Website made with

Odoo Experience on YouTube

1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.

Live support on Youtube
Watch now