Using a module to add a filter to a search view

One very nice feature of Odoo is the flexible but easy to use search functionality that is provided on every list view. With a module, you can add additional filter options that make it easier for users to find the information they are looking for. In our real-world example, we have placed an importance on rush orders. Therefore, it would be desirable to have a filter option on our sales order view that will limit our listing to only display rush orders.

Here is how the final search filter view will appear after we implement the module changes:

Using a module to add a filter to a search view

When Rush Only is checked, the sales order list view will ...

Get Working with Odoo 10 - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.