Enable Dark Mode!
how-to-customize-list-views-in-odoo-20-studio.jpg
By: Anaswara S Sunil

How to Customize List Views in Odoo 20 Studio

Technical Odoo 20 Studio

The list view is used to quickly browse through multiple records. Users open a list of contacts, orders, or products, find the record they want, sort a long table, or change a value without opening a form. A list that shows the right columns in the right order, with the right totals, saves a lot of time every day.

Odoo 20 Studio allows you to create the list view through a visual interface without having to write any XML and Python code. In this article, you will find details on all possible settings: columns and widgets, data aggregation (sum and average), additional columns, editable list, default sort, sorting with a drag handle, and decoration coloring records.

1. Open the List View in Studio

  • Launch the application and go to the desired list, such as Sales > Orders.
  • Go to the Studio icon (wrench), which appears in the upper right-hand corner.

How to Customize List Views in Odoo 20 Studio-cybrosys

  • Three tabs are present in the left panel: Add (for adding new fields and existing fields), View (settings for the whole list), and Properties (settings for the chosen column).
How to Customize List Views in Odoo 20 Studio-cybrosys

The List view is used to see many records together, find records, and edit records. The settings are inherited from the Studio and, therefore, do not change the default view.

2. Adding, Moving, and Removing Columns

The columns represent the fields displayed in the record of the list.

  • On the Add tab, you may use the Existing Fields or New Fields to create a new field.
How to Customize List Views in Odoo 20 Studio-cybrosys
  • Move the field to the list header position to add the column.
  • Move the column header right or left to reorder columns.
  • Remove the column by selecting its header and then clicking the Remove from view button on the Properties tab.
How to Customize List Views in Odoo 20 Studio-cybrosys

3. Widgets

Widgets alter the manner in which the field value is displayed or edited in the list. The Many2Many field is shown using color tags, the Selection field uses color badges, and Priority uses stars.

  1. Click on the column header to select it.
  2. On the Properties tab, select the Widget option.
  3. Choose the widget from the list. Depending on the field type, there are different widgets available.
How to Customize List Views in Odoo 20 Studio-cybrosys

Tip: Make sure that you use the widgets to make the list more readable and not just to decorate it. A badge or tag would be visible against the background of the list, which would otherwise be plain.

4. Aggregates: Sum, Average, and No Aggregation

Aggregation provides a sum or average at the bottom of the numeric column to make it easier for the users to see the sum or average of all rows without exporting the list.

  • Select a numeric column such as Total.
  • Go to the Properties tab and then select Aggregate.
  • Select any of the following from the three options:
    • Sum: Provides the sum of all the rows in the numeric column.
    • Average: Provides the average of all the rows in the numeric column.
    • No aggregation: Provides nothing at the bottom of the numeric column.
How to Customize List Views in Odoo 20 Studio-cybrosys

5. Optional Columns: By Default Visible or Hidden

Optional columns give users the option of selecting which columns to view. The optional columns can be configured through the small settings button on the right side of the list header.

  • Select the column that you want to make optional.
  • Go to the Properties tab and then select Optional.
  • Choose one of the two options below:
    • Show by default: The column will be visible and can be hidden by the users.
    • Hide by default: The column will not be visible and can be activated.
How to Customize List Views in Odoo 20 Studio-cybrosys
  • Close Studio and navigate to the settings button on the right side of the list header to ensure the column is in the drop-down menu.
  • Tip: Use Hide by default for secondary data such as reference or notes to keep the list clean for most users.

    6. Editable lists: add a record on top, at the bottom, or open form view

    It could be an editable list, whereby users will be able to edit simple records without opening the form. This option can be set in the View tab under the When Creating Record option.

    • Go to the View tab.
    • Search for "When Creating Record" and choose one of the following:
      • Add a record on top: A blank line will show up at the top of the list.
      • Add a record at the bottom: A blank line will show up at the bottom of the list.
      • Open form view: When you click New, the entire form will pop up, similar to when using the normal list.
    How to Customize List Views in Odoo 20 Studio-cybrosys
    • Go to Close Studio and click New to check the feature.

    Users won’t be able to access form view mode for an individual record in the case of an editable list. In case you need the facility, check the Open Form view.

    List Properties Other Than View Tab

    • Can Create, Can Edit, Can Delete, Can Duplicate: Untick any of these boxes to disallow this action for users for this particular list.
    • Enable Mass Editing: This will allow the users to select multiple rows and edit that field for all selected rows at once.
    • Sort By: Select the field on which the records will be sorted by default.
    • Default Group By: Select the field on which the records will be grouped by default.
    How to Customize List Views in Odoo 20 Studio-cybrosys

    7. Default Ordering: Ascending or Descending

    By default, the ordering is done based on the ordering in the model. This can be changed.

    1. Go to the View tab.
    2. Sort By: Select the field based on which ordering will be done, e.g., Order Date.
    How to Customize List Views in Odoo 20 Studio-cybrosys

    8. Sequence Handle with Custom Sorting

    However, there could also be cases where the order of the list will not be based on any specific value but on whatever the user desires. In such scenarios, it will be required to add a drag handle, which allows users to reorder the rows.

    1. In the Add tab, in the New Fields section, drag the Integer field into the list. Give a name, like Sequence, to the field.
    2. Select the newly created field.
    3. Go to the Properties tab, and set the Widget parameter to Handle.
    4. Exit the studio. There will be an icon for a drag handle for each row. Reorder the rows using the drag handle.
    How to Customize List Views in Odoo 20 Studio-cybrosys

    The drag handle contains the order within the Integer field. The order will be maintained across various sessions. This can be helpful for lists where the order of rows holds some business significance, such as procedure steps or template lines.

    It is possible to make a convenient and informative list view in Odoo 20 Studio in just a couple of clicks. The columns, widgets, and additional columns define the information shown to users. Aggregates, default sorting, and handles define ways of summarizing and sorting the information. Editable lists and decorations assist in making the list more convenient and readable without writing code.

    To read more about How to Customize Form Views in Odoo 20 Studio, refer to our blog How to Customize Form Views in Odoo 20 Studio.


    If you need any assistance in odoo, we are online, please chat with us.



    0
    Comments



    Leave a comment



    WhatsApp