Buscar, filtrar y agrupar registros¶
Odoo allows for the searching, filtering, and grouping of records in a view to display only the most relevant records. The search bar is located at the top of the view: start typing to search for values, or click the (dropdown) icon to access the Filter, Group By, and Favorites drop-down menus.
Buscar valores¶
Use the search field to look for specific values, and add them as a filter. Type the value to search for (like a salesperson’s name or a product), and select the desired option from the drop-down menu to apply the search filter.
Example
Instead of adding a custom filter to select records where
Mitchell Admin is the salesperson on the Sales Analysis report ( ), search for Mitch
, and click the
(submenu) icon next to Search Salesperson for: Mitch, and select
Mitchell Admin.

Nota
Using the search field is equivalent to using the contains operator when adding a custom filter. If a partial value is entered, and the desired field is directly selected (without selecting the (submenu), all records containing the typed characters for the selected field are included.
Filtros¶
Los filtros se usa para seleccionar registros que cumplen con ciertos criterios. La selección predeterminada de registros es específica para cada vista, pero se puede modificar seleccionando uno (o varios) de los filtros preconfigurados, o agregando un filtro personalizado.
Filtros preconfigurados¶
Modify the default selection of records by clicking the (dropdown) from the search bar, and selecting one (or several) preconfigured filters from the Filters drop-down menu.
Example
En el informe análisis de ventas (
), solo se seleccionan en automático los registros que estén en la etapa orden de ventas y cuya fecha de orden sea dentro de los últimos 365 días.Para también incluir los registros en etapa de cotización, seleccione Cotizaciones en los filtros.
Furthermore, to only include sales order and quotation records from a specific year, like 2024,
for example, first remove the existing Order Date: Last 365 Days
filter by clicking
(cancel), then select the
filter.

Nota
Los Filtros preconfigurados se agrupan y cada grupo se separa con una línea horizontal. Seleccionar filtros preconfigurados del mismo grupo permite que los registros coincidan con cualquier condición aplicada. Sin embargo, seleccionar los filtros de diferentes grupos requiere que los registros cumplan con todas las condiciones aplicadas.
Filtros personalizados¶
If the preconfigured filters are not specific enough, add a custom filter. To do so, click the (dropdown) icon in the search bar, then select .
La ventana emergente Agregar filtro personalizado muestra la opción que coincide, la regla de filtro y un activador para Incluir archivados.

La configuración de coincidencia predeterminada es coincidir con cualquiera de las siguientes reglas:, lo cual indica que cada regla de filtro se aplica de manera independiente. Para cambiar la configuración de coincidencia a coincidir con todas las siguientes reglas: debe agregar al menos dos reglas de filtro al filtro personalizado.
Match all of the following rules: All of the filter rules must be met. Think of this as an AND (
&
) operation.Match any of the following rules: Any of the filter rules can be met. Think of this as an OR (
|
) operation.
De forma predeterminada, se agrega una sola regla de filtro al filtro personalizado. A continuación describimos la estructura de una regla de filtro:
The first inline field is the field name to filter by. Some fields have refined parameters that are nested within another field. These fields have a (submenu) icon beside them, which can be selected to reveal the nested fields.
El segundo campo en línea es el operador condicional que se usa para comparar el nombre del campo con el valor. Los operadores condicionales disponibles dependen del tipo de información del campo.
El tercer campo en línea es el valor variable del nombre del campo. El valor ingresado puede aparecer como un menú desplegable, una entrada de texto, una entrada numérica, una entrada de fecha y hora, un selector booleano, o puede estar en blanco, dependiendo del operador que se use y el tipo de información del campo.
También están disponibles tres botones en línea a la derecha de los criterios de las reglas del filtro:
(plus): Adds a new rule below the existing rule.
(node): Adds a new group of rules below the existing rule, with the any and all matching options available to define how each rule within this branch is applied to the filter. If the matching option is set to the same as the parent group, the fields are moved to join the parent group.
Example
If the matching option is set to Match all of the following rules, and a new branch is added with its matching option changed from any of to all of, the newly-added branch disappears, and its group of rules are moved to the parent group.
(delete): Deletes the node. If a branch node is deleted, all children of that node are deleted, as well.
Si hace clic en el botón Nueva regla, se agregará una nueva regla de filtro al filtro personalizado.
Una vez que definió los criterios del filtro, haga clic en Agregar para agregar el filtro personalizado a la vista.
Example
Si lo que quiere es buscar entre todos los leads y oportunidades de la aplicación
que están en la etapa Ganado y tienen ganancias esperadas de más de $1,000, debe ingresar lo siguiente:Match all of the following rules:
Etapa está en Ganado
Ingreso esperado >
1,000
any of:
Tipo = Lead
Tipo = Oportunidad

Truco
Active el modo de desarrollador para mostrar el nombre técnico de cada campo y el tipo de información, así como el la area de texto # Editor de código debajo de las reglas de filtro para ver y editar el dominio de forma manual.
Agrupar registros¶
The display of records in a view can be clustered together, according to one of the preconfigured groups. To do so, click the (dropdown) icon in the search bar, then select one of the Group By options from the drop-down menu.
Example
Para agrupar los registros por vendedor en el informe de análisis de ventas (Vendedor que aparece en el menú desplegable Agrupar por. La vista cambia para mostrar los registros agrupados por vendedor sin filtrarlos.
), haga clic en la opción
Es posible personalizar grupos con un campo presente en el modelo. Para hacerlo, haga clic en
y seleccione un campo del menú desplegable.Nota
Puede usar varios grupos al mismo tiempo. El primer grupo que se seleccionó es el agrupamiento principal, el siguiente que se agrega divide aún más las categorías principales del grupo y así sucesivamente. Además, los filtros y los grupos se pueden usar juntos para definir la vista todavía más.
Comparación¶
Certain reporting dashboards include a Comparison section in the drop-down menus of their search bars. This includes the Overall Equipment Effectiveness report for the Manufacturing app and the Purchase report for the Purchase app, among others.
The options in the Comparison section are used to compare data from two different time periods. Pick between the two comparison options: (Time Filter): Previous Period and (Time Filter): Previous Year.
Importante
- For some reports, the Comparison section only appears in the search bar drop-down
menu if one (or more) time periods have been selected in the Filters column. This is because there is nothing to compare if no time period is specified.
Additionally, some reports only allow use of the Comparison feature when the (Pie Chart) graph type or the (Pivot) view, is selected. A Comparison option can be selected even if another view is enabled, but doing so does not change the way data is displayed on the report.

To view data using one of the two comparisons, begin by selecting a time period in the Filters column of the search bar drop-down menu. Then, select either (Time Filter): Previous Period or (Time Filter): Previous Year in the Comparison section.
Una vez que haya habilitado una de las opciones de Comparación, el informe comparará los datos del periodo seleccionado con los datos del mismo intervalo (mes, trimestre, año) del periodo o año anterior. La forma de visualizar los datos depende de la vista seleccionada:
The (Bar Chart) shows two bars, side-by-side, for each unit of time for the selected time period. The left bar represents the selected time period, while the right bar represents the previous time period.
The (Line Chart) is displayed with two lines, one representing the selected time period, and the other representing the previous time period.
The (Pie Chart) appears as a large circle with a smaller circle inside. The larger circle represents the selected time period, while the smaller circle represents the previous time period.
The (Pivot) is displayed with each column split into two smaller columns. The right column represents the selected time period, while the left column represents the previous time period.
Example
In the Production Analysis report of the app, data for the second quarter of 2024 is compared to data for the second quarter of 2023. Q2 is selected in the End Date filter section of the search bar drop-down menu. In the Comparison section, End Date: Previous Year is selected.
El año actual es 2024, por lo que el círculo más grande muestra los datos del segundo trimestre (Q2) de 2024 y el círculo más pequeño muestra los datos del segundo trimestre (Q2) de 2023, que es el mismo periodo, pero un año antes.
Si selecciona Fecha de finalización: Periodo anterior, el círculo más pequeño mostrará los datos del primer trimestre (Q1) de 2024, que es el mismo periodo, pero anterior.

Favoritos¶
Los favoritos son una forma de guardar una búsqueda específica para usarla más tarde, o como un nuevo filtro predeterminado para una vista.
To save the current view as a favorite, click the (dropdown) icon in the search bar, then select the Save current search drop-down menu to display the following options:
Filter name: Name of the favorited search.
Default filter: Sets the favorited search as the default filter for the view.
Shared: Makes the favorited search available to all users. Otherwise, by default, the favorited search is only available to the user who created it.
Una vez que las opciones estén configuradas, haga clic en Guardar para guardar la búsqueda en favoritos.

Saved favorites can be accessed by clicking the (delete) icon in the search bar, then selecting the saved filter in the Favorites drop-down menu. To remove a saved favorite, click the (delete) icon next to the favorited search.
Truco
Para ver todas las búsquedas favoritas, primero active el modo de desarrollador y vaya a . Desde aquí, todas las búsquedas en favoritos se pueden ver, editar, archivar o borrar.