Ir al contenido
Odoo Menú
  • Iniciar sesión
  • Pruébalo gratis
  • Aplicaciones
    Finanzas
    • Contabilidad
    • Facturación
    • Gastos
    • Hoja de cálculo (BI)
    • Documentos
    • Firma electrónica
    Ventas
    • CRM
    • Ventas
    • PdV para tiendas
    • PdV para restaurantes
    • Suscripciones
    • Alquiler
    Sitios web
    • Creador de sitios web
    • Comercio electrónico
    • Blog
    • Foro
    • Chat en vivo
    • eLearning
    Cadena de suministro
    • Inventario
    • Manufactura
    • PLM
    • Compras
    • Mantenimiento
    • Calidad
    Recursos humanos
    • Empleados
    • Reclutamiento
    • Vacaciones
    • Evaluaciones
    • Referencias
    • Flotilla
    Marketing
    • Redes sociales
    • Marketing por correo
    • Marketing por SMS
    • Eventos
    • Automatización de marketing
    • Encuestas
    Servicios
    • Proyectos
    • Registro de horas
    • Servicio externo
    • Soporte al cliente
    • Planeación
    • Citas
    Productividad
    • Conversaciones
    • Aprobaciones
    • IoT
    • VoIP
    • Artículos
    • WhatsApp
    Aplicaciones externas Studio de Odoo Plataforma de Odoo en la nube
  • Industrias
    Venta minorista
    • Librería
    • Tienda de ropa
    • Mueblería
    • Tienda de abarrotes
    • Ferretería
    • Juguetería
    Alimentos y hospitalidad
    • Bar y pub
    • Restaurante
    • Comida rápida
    • Casa de huéspedes
    • Distribuidora de bebidas
    • Hotel
    Bienes inmuebles
    • Agencia inmobiliaria
    • Estudio de arquitectura
    • Construcción
    • Gestión de bienes inmuebles
    • Jardinería
    • Asociación de propietarios
    Consultoría
    • Firma contable
    • Partner de Odoo
    • Agencia de marketing
    • Bufete de abogados
    • Adquisición de talentos
    • Auditorías y certificaciones
    Manufactura
    • Textil
    • Metal
    • Muebles
    • Comida
    • Cervecería
    • Regalos corporativos
    Salud y ejercicio
    • Club deportivo
    • Óptica
    • Gimnasio
    • Especialistas en bienestar
    • Farmacia
    • Peluquería
    Trades
    • Personal de mantenimiento
    • Hardware y soporte de TI
    • Sistemas de energía solar
    • Zapateros y fabricantes de calzado
    • Servicios de limpieza
    • Servicios de calefacción, ventilación y aire acondicionado
    Otros
    • Organización sin fines de lucro
    • Agencia para la protección del medio ambiente
    • Alquiler de anuncios publicitarios
    • Fotografía
    • Alquiler de bicicletas
    • Distribuidor de software
    Descubre todas las industrias
  • Odoo Community
    Aprende
    • Tutoriales
    • Documentación
    • Certificaciones
    • Capacitación
    • Blog
    • Podcast
    Fortalece la educación
    • Programa educativo
    • Scale Up! El juego empresarial
    • Visita Odoo
    Obtén el software
    • Descargar
    • Compara ediciones
    • Versiones
    Colabora
    • GitHub
    • Foro
    • Eventos
    • Traducciones
    • Conviértete en partner
    • Servicios para partners
    • Registra tu firma contable
    Obtén servicios
    • Encuentra un partner
    • Encuentra un contador
    • Contacta a un consultor
    • Servicios de implementación
    • Referencias de clientes
    • Soporte
    • Actualizaciones
    GitHub YouTube Twitter LinkedIn Instagram Facebook Spotify
    +1 (650) 691-3277
    Solicita 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
  • Proyectos
  • 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 change the default number of lines in listview?

Suscribirse

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

Se marcó esta pregunta
listview6.1lines
3 Respuestas
23610 Vistas
Avatar
ton123

There are a lot of listviews in OpenERP. They work very good and nice. I often use listviews for sales/addresbook/contacts and for products.

The number of lines can be choosen:

  • 24 lines
  • 80 lines
  • 100 lines
  • 200 lines
  • 500 lines
  • unlimited lines

The default value is always: 24.

I would like to have an other default value.

Is it possible to set the default value in the configuration parameters, if so how? E.g. on a system basis, on a per screen basis or is it possible to keep the default value of the last typed in value?

2
Avatar
Descartar
Avatar
Ray Carnes
Mejor respuesta

The default limit for a list view is set on the corresponding Window Action.


VIA THE USER INTERFACE:

Window Actions are managed via:

Settings -> Customization -> Low Level Objects -> Actions -> Window Actions

Because things like Products can be viewed from many different places ...

Sales -> Products -> Products

Sales -> Products -> Products by Category (and then select a Category)

Purchases -> Products -> Products

Warehouse -> Products -> Products

POS Backend -> Products -> Products

Tools -> Configuration -> Lunch -> Products

... if you search for 'product.product' in the Object field, you will see 6 Window Actions named 'Products'.

So it is better to search for the Menu item, via:

Settings -> Customization -> User Interface -> Menu Items

... and then open the Action from there.

When you do, you will see the default value in the Limit field - and you can change this value from 80 to anything you want:

image description


VIA XML:

Change the limit field in the window action definition:

action add <field name="limit">your_default_limit</field>
7
Avatar
Descartar
Anil Kesariya

This solution update the limit of main model, but what about child view, for e.g. if we want to extend the limit of one2many field. is it possible to do through configuration?

Avatar
Saloua.sahnoune
Mejor respuesta

You  just need to add the limit value to your one2many field in python


ex: line_id = fields.One2many('res.user', 'objectif_week', limit=4, default=default_get)

0
Avatar
Descartar
keywal

The One2many`limit` is an optional limit to use upon read. The OP asks to limit the lines shown in the list view (v6.1) and the provided code is written in the new API which is available since Odoo 8.

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

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

Registrarse
Publicaciones relacionadas Respuestas Vistas Actividad
How to Implement Column-wise Filters in CRM List View (Odoo 18)
listview
Avatar
Avatar
1
ago 25
1517
Is Edit List View via the Developer Mode for any module a native function by odoo? Resuelto
listview
Avatar
Avatar
1
nov 22
3694
Integrate openerp with twitter and facebook
6.1
Avatar
1
ene 24
8967
How can I reload the list view content in odoo 11? Resuelto
listview
Avatar
Avatar
Avatar
2
abr 19
8777
print / pdf error: localhost:8069/web/webclient/js:23114
6.1
Avatar
0
mar 15
6218
Comunidad
  • Tutoriales
  • Documentación
  • Foro
Código abierto
  • Descargar
  • GitHub
  • Runbot
  • Traducciones
Servicios
  • Alojamiento en Odoo.sh
  • Soporte
  • Actualizaciones del software
  • Desarrollos personalizados
  • Educación
  • Encuentra un contador
  • Encuentra un partner
  • Conviértete en partner
Sobre nosotros
  • Nuestra empresa
  • Activos de marca
  • Contáctanos
  • Empleos
  • Eventos
  • Podcast
  • Blog
  • Clientes
  • 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 estar 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