Skip to Content
Menu
This question has been flagged
1 Reply
477 Views

Odoo 17

Is there any way to set default search filter for each view?

I have a reviews page with a tree and graph view.

On the tree view i want to set the default search filter to "my_reviews" but on the graph i want it to filter ratings by default.

Avatar
Discard
Best Answer

This is not possible without custom code (probably JavaScript to update the Window Action context dynamically based on the View type).

The best you could do would be to create a second Menu with a different Window Action where you can have a different context than the first.

Remember that the step to change the filter will almost certainly become invisible (combined via muscle memory into a larger step) after Users have done it enough times, just like someone who drives a car makes the steps "move foot to the brake pedal" and "depress the brake pedal" and "move hand to the car ignition point" and "start the car" invisible (combined into one) after they have driven for a few weeks.

In other words, such a change doesn't seem to have a high return on investment.

Avatar
Discard
Author

I see. Thank you for the response