Apply multiple filters at once

I am currently using odoov8, my problem is that I created many filters from xml code according to my requirement, and everything works fine, but I can only select one filter at a time.

therefore, for example, I want to apply any 3 filters in the tree view, then I need to select the first, then the system loads the data, then I select the 2nd and 3rd filters, so the system loads after applying each filter.

I want to achieve this if I can immediately select all my filters and then apply the search, so loading the system after submitting a search request no matter how long it takes, but I should not require searching for one filter.

so is there any user module or way from which I can achieve this.

Thanks in advance.

+4
source share
1 answer

I do not know any module that implements this.

This function already exists in Advanced Search, you add conditions, and then click Applyto view the corresponding widget and copy functions.

What you need to do is change javascript so that when you click on a filter you need to add it to the view oe_searchview, but the method search_readwill not be called. You need to start the modifications from the widget web.search.FilterGroupand, in particular, from the method search_changethat is called every time you click on filters.

+1

Source: https://habr.com/ru/post/1684269/


All Articles