ค้นหา กรอง และจัดกลุ่มระเบียน

Odoo อนุญาตให้ค้นหา กรอง และจัดกลุ่มบันทึกในมุมมองเพื่อแสดงเฉพาะบันทึกที่เกี่ยวข้องมากที่สุด แถบค้นหาจะอยู่ที่ด้านบนของมุมมอง เริ่มพิมพ์ ค้นหาค่า ​​ หรือคลิกไอคอน 🔽 (ลูกศรลง) เพื่อเข้าถึงเมนูแบบเลื่อนลง ตัวกรอง, จัดกลุ่มตาม และ รายการโปรด

ค้นหาค่า

Use the search field to quickly look for specific values, and add them as a filter. Type the value to search for, 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 (Sales app ‣ Reporting ‣ Sales), search for Mitch, and click the ⏵ (right arrow) next to Search Salesperson for: Mitch, and select Mitchell Admin.

การค้นหาค่าเฉพาะในรายงานการวิเคราะห์การขาย

Note

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 ⏵ (right arrow)), all records containing the typed characters for the selected field are included.

ตัวกรอง

ตัวกรองใช้เพื่อเลือกระเบียนที่ตรงตามเกณฑ์เฉพาะ การเลือกระเบียนเริ่มต้นจะเฉพาะเจาะจงกับแต่ละมุมมอง แต่สามารถปรับเปลี่ยนได้โดยเลือก:ref:ตัวกรองที่กำหนดค่าไว้ล่วงหน้า <search/preconfigured-filters>`อย่างน้อยหนึ่งตัว (หรือหลายตัว) หรือเพิ่ม:ref:`ตัวกรองแบบกำหนดเอง <search/custom-filters>

ตัวกรองที่กำหนดค่าไว้ล่วงหน้า

Modify the default selection of records by clicking the 🔽 (down arrow) icon from the search bar, and selecting one (or several) preconfigured filters from the Filters drop-down menu.

Example

ในรายงาน การวิเคราะห์การขาย (แอปการขาย ‣ การรายงาน ‣ การขาย) จะเลือกเฉพาะระเบียนที่อยู่ในขั้นตอน คำสั่งขาย ที่มี*วันที่สั่งซื้อ*ภายใน 365 วันที่ผ่านมาเป็นค่าเริ่มต้น

หากต้องการรวมระเบียนที่อยู่ในขั้นตอน ใบเสนอราคา ด้วย ให้เลือก ใบเสนอราคา จาก ตัวกรอง

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 the ❌ (remove) icon, then select Order Date ‣ 2024.

การใช้ตัวกรองที่กำหนดค่าไว้ล่วงหน้าในรายงานการวิเคราะห์การขาย

Note

:guilabel:`ตัวกรอง`ที่กำหนดค่าไว้ล่วงหน้าจะถูกจัดกลุ่ม และแต่ละกลุ่มจะถูกแยกด้วยเส้นแนวนอน การเลือกตัวกรองที่กำหนดค่าไว้ล่วงหน้าจากกลุ่มเดียวกันจะทำให้ระเบียนตรงกับ*ใดๆ*ของเงื่อนไขที่ใช้ อย่างไรก็ตาม การเลือกตัวกรองจากกลุ่มต่างๆ กันจะต้องทำให้ระเบียนตรงกับ*ทั้งหมด*ของเงื่อนไขที่ใช้

ตัวกรองแบบกำหนดเอง

If the preconfigured filters are not specific enough, add a custom filter. To do so, click the 🔽 (down arrow) icon in the search bar, then select Filters ‣ Add Custom Filter.

หน้าต่างป๊อปอัป เพิ่มตัวกรองแบบกำหนดเอง จะแสดงตัวเลือกการจับคู่ กฎตัวกรอง และปุ่มสลับเพื่อ:guilabel:รวมรายการที่เก็บถาวร

หน้าต่างป๊อปอัปเพิ่มตัวกรองแบบกำหนดเอง

การกำหนดค่าการจับคู่เริ่มต้นคือ จับคู่กฎใดกฎหนึ่งต่อไปนี้ ซึ่งบ่งชี้ว่ากฎตัวกรองแต่ละรายการจะถูกใช้อย่างอิสระ หากต้องการเปลี่ยนการกำหนดค่าการจับคู่เป็น จับคู่กฎทั้งหมดต่อไปนี้ จะต้องเพิ่มกฎตัวกรองอย่างน้อยสองกฎในตัวกรองแบบกำหนดเอง

  • Match all 🔽 of the following rules: all of the filter rules must be met. Logically, this is an AND (&) operation.

  • Match any 🔽 of the following rules: any of the filter rules can be met. Logically, this is an OR (|) operation.

ตามค่าเริ่มต้น กฎตัวกรองเดียวจะถูกเพิ่มเข้าไปในตัวกรองแบบกำหนดเอง ต่อไปนี้อธิบายโครงสร้างของกฎตัวกรอง:

  1. 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 an > (arrow) icon beside them, which can be selected to reveal the nested fields.

  2. ฟิลด์อินไลน์ที่สองคือ*ตัวดำเนินการ*ตามเงื่อนไขที่ใช้เปรียบเทียบชื่อฟิลด์กับค่า :ref:`ตัวดำเนินการตามเงื่อนไขที่ใช้ได้ <reference/orm/domains>`จะเฉพาะเจาะจงกับประเภทข้อมูลของฟิลด์

  3. ฟิลด์อินไลน์ที่สามคือ*ค่า*ตัวแปรของชื่อฟิลด์ การป้อนค่าอาจปรากฏเป็นเมนูแบบเลื่อนลง การป้อนข้อความ การป้อนตัวเลข การป้อนวันที่/เวลา ตัวเลือกบูลีน หรืออาจเป็นช่องว่าง ขึ้นอยู่กับตัวดำเนินการที่ใช้และประเภทข้อมูลของฟิลด์

มีปุ่มแบบอินไลน์สามปุ่มที่อยู่ด้านขวาของเกณฑ์การกรองของกฎ:

  1. ➕ (plus sign): adds a new rule below the existing rule.

  2. (เพิ่มสาขา): เพิ่มกลุ่มกฎใหม่ด้านล่างกฎที่มีอยู่ โดยมีตัวเลือกการจับคู่ ใดก็ได้ และ ทั้งหมด ให้เลือกเพื่อกำหนดว่ากฎแต่ละข้อภายในสาขานี้จะถูกนำไปใช้กับตัวกรองอย่างไร หากตัวเลือกการจับคู่ถูกตั้งค่าให้เหมือนกับกลุ่มหลัก ฟิลด์จะถูกย้ายเพื่อเข้าร่วมกลุ่มหลัก

    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.

  3. 🗑️ (garbage can): deletes the node. If a branch node is deleted, all children of that node are deleted, as well.

สามารถเพิ่มกฎการกรองใหม่ลงในตัวกรองแบบกำหนดเองได้โดยคลิกปุ่ม กฎใหม่

เมื่อกำหนดเกณฑ์การกรองแล้ว ให้คลิก เพิ่ม เพื่อเพิ่มตัวกรองแบบกำหนดเองลงในมุมมอง

Example

เพื่อกำหนดเป้าหมายลูกค้าเป้าหมายและโอกาสทางการขายทั้งหมดจากแอป ลูกค้าสัมพันธ์ ที่อยู่ในขั้นตอน ชนะ และมีรายได้ที่คาดหวังมากกว่า $1,000 ควรป้อนดังต่อไปนี้:

Match all 🔽 (down arrow) of the following rules:

  1. ขั้นตอน อยู่ใน ชนะ

  2. รายได้ที่คาดหวัง > 1,000

  3. any 🔽 (ลูกศรลง) of:

    • ประเภท = ลูกค้าเป้าหมาย

    • ประเภท = ผู้มีโอกาสเป็นลูกค้า

การเพิ่มตัวกรองแบบกำหนดเองเพื่อกรองระเบียนเฉพาะในลูกค้าสัมพันธ์

Tip

เปิดใช้งาน โหมดนักพัฒนา เพื่อเปิดเผยชื่อทางเทคนิคและประเภทข้อมูลของแต่ละช่อง รวมถึงพื้นที่ข้อความ # โปรแกรมแก้ไขโค้ด ใต้กฎตัวกรอง เพื่อดูและแก้ไขโดเมนด้วยตนเอง

จัดกลุ่มระเบียน

The display of records in a view can be clustered together, according to one of the preconfigured groups. To do so, click the 🔽 (down arrow) icon in the search bar, then select one of the Group By options from the drop-down menu.

Example

เพื่อจัดกลุ่มระเบียนตามพนักงานขายในรายงาน*การวิเคราะห์การขาย* (แอปการขาย ‣ การรายงาน ‣ การขาย) ให้คลิกตัวเลือก พนักงานขาย จากเมนูแบบเลื่อนลง จัดกลุ่มตาม มุมมองจะเปลี่ยนเป็นการจัดกลุ่มระเบียนตามพนักงานขาย โดยไม่กรองระเบียนใดออก

การจัดกลุ่มระเบียนในรายงานการวิเคราะห์การขาย

สามารถ*กำหนดกลุ่มเอง*ได้โดยใช้ฟิลด์ที่มีอยู่ในโมเดล โดยคลิก เพิ่มกลุ่มแบบกำหนดเอง และเลือกฟิลด์จากเมนูแบบเลื่อนลง

Note

สามารถใช้หลายกลุ่มพร้อมกันได้ กลุ่มแรกที่เลือกจะเป็นกลุ่มหลัก กลุ่มถัดไปที่เพิ่มเข้ามาจะแบ่งหมวดหมู่ของกลุ่มหลักต่อไป และอื่นๆ นอกจากนี้ ตัวกรองและกลุ่มสามารถใช้ร่วมกันเพื่อปรับแต่งมุมมองให้ละเอียดยิ่งขึ้น

การเปรียบเทียบ

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. There are two comparison options to choose from: (Time Filter): Previous Period and (Time Filter): Previous Year.

Important

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, if no time period is specified, there is nothing to compare.

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.

The Search... bar for the production analysis 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.

เมื่อเปิดใช้งานตัวเลือก Comparison รายงานจะเปรียบเทียบข้อมูลสำหรับช่วงเวลาที่เลือกกับข้อมูลสำหรับหน่วยเวลาเดียวกัน (เดือน ไตรมาส ปี) ย้อนหลังหนึ่งช่วงหรือหนึ่งปี วิธีการแสดงข้อมูลขึ้นอยู่กับมุมมองที่เลือก:

  • 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 table) 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 Manufacturing 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.

ปีปัจจุบันคือ 2024 ดังนั้นวงกลมใหญ่จึงแสดงข้อมูลสำหรับไตรมาสที่สอง (Q2) ของปี 2024 วงกลมเล็กแสดงข้อมูลสำหรับไตรมาสที่สอง (Q2) ของปี 2023 ซึ่งเป็นช่วงเวลาเดียวกัน แต่ย้อนหลังหนึ่ง*ปี*

หากเลือก End Date: Previous Period แทน วงกลมเล็กจะแสดงข้อมูลสำหรับไตรมาสที่หนึ่ง (Q1) ของปี 2024 ซึ่งเป็นช่วงเวลาเดียวกัน แต่ย้อนหลังหนึ่ง*ช่วง*

มุมมองเปรียบเทียบของรายงาน Production Analysis

รายการโปรด

รายการโปรดเป็นวิธีบันทึกการค้นหาเฉพาะเพื่อใช้ในอนาคตหรือเป็นตัวกรองเริ่มต้นใหม่สำหรับมุมมอง

To save the current view as a favorite, click the 🔽 (down arrow) 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. By default, the favorited search is only available to the user who created it.

เมื่อตั้งค่าตัวเลือกแล้ว ให้คลิก Save เพื่อบันทึกการค้นหาที่บันทึกเป็นรายการโปรด

Saving a favorite search on the Sales Analysis report

Saved favorites can be accessed by clicking the 🔽 (down arrow) icon in the search bar, then selecting the saved filter in the Favorites drop-down menu. To remove a saved favorite, click the 🗑️ (garbage can) icon next to the favorited search.

Tip

To view all favorited searches, first activate โหมดนักพัฒนา (โหมดแก้ไขข้อบกพร่อง), and navigate to Settings app ‣ Technical ‣ User Interface: User-defined Filters. From here, all favorited searches can be viewed, edited, archived, or deleted.