Global filters

Create dynamic views of inserted data, by mapping data source fields to global filters in the Odoo Spreadsheets app.

참고

전체 필터는 |전체 필터| 아이콘으로 표시되어 있으며 피벗 테이블, 목록 또는 그래프를 통해 삽입된 데이터를 필터할 수 있습니다. 전체 필터는 (필터) 아이콘으로 표시되는 셀 범위에 대한 정렬 및 필터 기능과는 다릅니다.

The global filters menu sidebar on a spreadsheet.

필터 추가

Navigate to the Documents app and click on the desired spreadsheet, then open the (global filter) filter menu.

Create a new filter by selecting one of the buttons under the Add a new filter… section:

  • Date: filter dates by matching data source date fields to a time range (e.g., Month / Quarter, Relative Period, or From / To).

  • Relation: filter records by matching data source fields to fields in a related model (e.g., Lead/Opportunity, Sales Order, or Event Registration).

  • Text: filter text by matching data source text fields to a string of text (e.g., Restrict values to a range and/or provide a Default value).

참고

Only filters that are able to be applied to the fields in the data source are shown.

날짜

전체 필터인 날짜 필터를 통해 특정 기간 범위로 데이터 출처에 필터를 적용할 수 있으며, 현재 기간을 기준으로 자동 필터를 하거나 기간을 기준으로 시간 범위를 오프셋할 수 있습니다.

With the (global filter) menu open, select the Date button to create a new date filter. The Filter properties menu displays the following fields for configuration below.

First, enter a name for the new date filter in the Label field.

Then, select one of the three period options in the Time range field:

  • Month / Quarter: enables a drop-down menu of specific months and quarters of a year (i.e., Q1, Q2, January, etc.).

  • Relative Period: enables a drop-down menu of specific moving time frames (i.e., Year to Date, Last 7 Days, Last 30 Days, etc.).

  • From / To: enables Date from… and Date to… date selection fields to define a specific time range (e.g., 06/05/2024 to 06/27/2024).

Optionally, set a Default value for the Time range.

참고

The Default value field only appears for Month / Quarter or Relative Period ranges.

If the Month / Quarter range is selected, tick the Automatically filter on the current period checkbox to define the default period of either Month, Quarter, or Year.

다음으로 각 데이터 출처에 항목 매칭 를 설정합니다. 설정하려면 항목 매칭 제목을 클릭하여 섹션을 펼칩니다.각 데이터 출처에 매치할 항목이 두 개씩 표시되는 스프레드시트의 데이터 출처 목록이 나타납니다.

  • Date field: select a date field from the data source model to apply the time range to.

  • Period offset: (optionally) select an offset that shifts the time range by a relative period.

    The options available are: Previous, Before Previous, Next, After Next.

마지막으로 양식에 정보를 모두 입력한 후 저장 버튼을 클릭합니다. 데이터 출처 항목 중에서 날짜 (또는 일시) 데이터 유형과 일치하지 않는 항목이 있는 경우에는 일부 필수 항목이 유효하지 않습니다 라는 오류 메시지가 표시됩니다.

Example

Consider a Period offset of Next when using the Month / Quarter range to apply the filter to the next period relative to the set time range.

With this configuration, selecting January 2024 as the date, filters data as February 2024; where the selected month is offset to the next month.

A date filter with a period offset of "Next" configured.

관련성

The Relation global filter enables the filtering of records in data sources by selecting a field from a related model.

With the (global filter) menu open, select the Relation button to create a new relation filter. The Filter properties menu displays the following fields for configuration.

First, enter a name for the new relation filter in the Label field.

Then, select or search for a model from the Related model field.

Once a model is selected, the Default value and Field matching fields appear.

Optionally, set a Default value for the Related model. The available options are records of the model.

다음으로 각 데이터 출처에 항목 매칭 을 설정합니다. 설정하려면 항목 매칭 제목을 클릭하여 섹션을 펼칩니다. 데이터 출처에 매치할 항목이 두 개씩 표시되는 스프레드시트의 데이터 출처 목록이 나타납니다.

Select a field from the data source model from which to apply the relation filter.

마지막으로 양식에 내용을 모두 입력한 후 저장 버튼을 클릭합니다. 데이터 출처 항목 중에서 날짜 (또는 일시) 데이터 유형과 일치하지 않는 항목이 있는 경우에는 일부 필수 항목이 유효하지 않습니다 라는 오류 메시지가 표시됩니다.

Example

Consider a Relation filter with the Related model set as Contact. The Field matching CRM lead (crm.lead) pivot data sources are set to Customer.

With this configuration, selecting a customer record filters the pivot table to only leads that are related to the selected customer record.

A relation filter with the Contact model configured.

문자

The Text global filter enables the filtering of text by matching data source text fields to a string of text or to a range of predefined values.

With the (global filter) menu open, select the Text button to create a new text filter. The Filter properties menu displays the following fields for configuration.

First, enter a name for the new text filter in the Label field.

그런 다음 확인란을 선택하여 :guilabel:`범위로 값을 제한`할지 여부를 선택합니다. 그렇게 하면 스프레드시트 내에 범위를 입력하는 항목이 표시됩니다. 범위를 입력 혹은 선택합니다.

다음으로 각 데이터 출처에 항목 매칭 을 설정합니다. 설정하려면 항목 매칭 제목을 클릭하여 섹션을 펼칩니다. 데이터 출처에 매치할 항목이 두 개씩 표시되는 스프레드시트의 데이터 출처 목록이 나타납니다.

Select a field from the data source model from which to apply the text filter.

마지막으로 양식에 내용을 모두 입력한 후 저장 버튼을 클릭합니다. 데이터 출처 항목 중에서 날짜 (또는 일시) 데이터 유형과 일치하지 않는 항목이 있는 경우에는 일부 필수 항목이 유효하지 않습니다 라는 오류 메시지가 표시됩니다.

Example

값을 범위로 제한A2:A6 범위가 추가된 텍스트 필터가 있다고 가정합니다. 스프레드시트에는 열 A 와 행 `2`부터`6`까지의 셀에 다섯 가지 서로 다른 품목명이 값으로 나타나 있습니다.

With the above configuration, a pivot table of products can be filtered by product name by selecting one of the 5 predefined values available in the text filter.

Furthermore, if the values in the range A2:A6 are added dynamically– the text filter becomes dynamic as well.

A dynamic text filter with a restricted range.

Manage filters

Open the (global filter) filter menu by navigating to the Documents app and clicking on the desired spreadsheet.

Existing global filters appear under the Filters section. Filters can be used individually, or at the same time.

The order of existing filters can be changed by hovering over a filter and using the (drag handle) icon to change the position.

To reset a filter with set values back to default, click on the (clear) icon next to the value in the filter.

기존 필터를 편집하려면 (톱니바퀴) 아이콘을 선택하여 필터에 있는 필터 속성 메뉴를 엽니다. 여기에서 필터를 수정하거나 제거 버튼으로 필터를 삭제할 수 있습니다.