Skip to Content
Menu
This question has been flagged
3 Replies
8375 Views

Is there any simplified way to edit the custom filters already added. Without having to delete and add again?

This filter: https://ibb.co/0r3z2bz


Avatar
Discard
Author

This is something like this, but to edit filter values:

Ex.:

https://ibb.co/0r3z2bz

Using: https://github.com/OCA/web/tree/12.0/web_edit_user_filter

Thanks for replyes .

But is not filters , saved filters . It is custom filters added from UI. Like last update, for change the date i need, delete and add. I cant change the date in fast and easy way ?

Best Answer

In Developer Mode, visit this Menu:


Find and open the Filter you created to see the definition and a way to edit the Domain:


Avatar
Discard

Is there a way to also see the default system filters? Trying to find the field one is using.

Filters are defined in Search Views. Settings --> Technical --> User Interface --> Views. Any "Search" View Type can define Filters for a model. Look for the "filter" tag inside the View and then the "domain" attribute for each one.

Best Answer

Here's another simple way:

In debug mode, go to Settings / Technical / (User Interface) / User-defined filters 

You'll have to search for the Filter you just created, but that should be easy if you remember what it was called.


Avatar
Discard
Best Answer

Hi,

Upon clicking the link you have added, it says that the image has been deleted, so not sure what exactly your issue is. If you are looking to add new filters, in enterprise edition you can do it like this: How to Add Filters and Group By Using Odoo Studio


If you are using the community edition, you can change the filters by from the code or from the user interface. For changing the Filters from UI, activate the developer mode and open corresponding view and click the Edit Search View from the Option listed while clicking the debugger button near logged in users name in the menu bar. Then in the wizard which pop up, in the architecture page you can see the code, from here you can edit existing filters or add new filters.


For doing it from the code, you have to inherit the search view and do. You can refer this blog: Adding filters to existing search views

And watch this to see how to define new filters for the model: Define Search View and Filters

Thanks

Avatar
Discard