تخطي للذهاب إلى المحتوى
القائمة
لقد تم الإبلاغ عن هذا السؤال
1 الرد
832 أدوات العرض

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.

الصورة الرمزية
إهمال
أفضل إجابة

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.

الصورة الرمزية
إهمال
الكاتب

I see. Thank you for the response