Can I prevent a filter option from appearing on the 'Search More' view in Odoo 13 - odoo-13

In Odoo 13 I have inherited the 'product_template_search_view' record and added a few custom filters. This all works as expected when configuring a product.
Then on a quotation when adding a product, the 'Search More' option is available, which displays all the same filters. There is however one of the filters that I don't want to appear on the 'Search More' view.
Is there a way to prevent this?

Related

How to add searchable field in Drupal 9 backend

In my Drupal 9 dashboard I can search different content based on following field:
I want to add one more field, let's suppose "name" field, where I want to search all names. How I can add one more field here?
Its a view and you can configure it. GoTo /admin/structure/views/view/content and add filters on the left bottom side.

Are there any negative consequences of giving ‘Title’ field a default value of ‘View’ and making it a hidden field?

When I create a list, I have gotten into the habit of doing the following:
Change Title field name to Item
Give it the default value of View
Go to Advanced Settings
Allow management of content types > Yes
Click Save
Then in Settings, click on the Item type
Then click on the Item field and select Hidden
Then go back to Advanced Settings
Allow management of content types > No
Click Save
The result of this is that:
The Title field (now called Item) is hidden in the form
I have a column called Item, which has the link View in each row (which opens up the item)
I can’t remember why I started doing this (possibly one of the reasons outlined in this video), but the use case must have demanded it and I just kept doing it.
However, lately I have been having troubling thoughts about whether it negatively effects indexing or has any other undesired outcomes.
For example, I did a search in a list the other today, and in the drop down search results that were displayed, I just got multiple rows of the value View.
I also read just before posting this question that list items in the recycle bin will be identified by the value that was in the Title column. So if they all say View it will be impossible to differentiate one from the other.
So I just thought I would see if there is any authoritative, definitive best practice around the Title column, and ask if my convention is bad and if so what I should replace it with.
Thank You.
(Edit: I also hide the Title column in document libraries, as it doesn’t seem to serve a purpose, as clicking on the value in the Name column opens up the document anyway - therefore the ‘link’ action of the Title field is not required).

Populate Dropdown from filtered data in Spotfire

I have a data set that contains a number of groups and each group has a number of individuals.
I have a tab in a report which shows some statistics for all the groups as a whole.
I have another tab which has a filter to only show info for selected groups in that tab.
I have a third tab, which I want to show info for individuals within whatever group is selected on the second tab.
I have 2 filters setup for these, a 'group' filter and an 'individual' filter so that I can easily add the filter to any visualizations.
I am trying to only show individuals within a group selected on the second tab ('group' filter) on the filter in the third tab ('individual' filter) however this will only happen when I set that filter to the 'group' filter'. This would be OK except when I go back to tab 2 to change the group (and thus the available individuals on the third tab) I only have one group available in this filter IF I have selected an individual on the third tab.
Is there any way to do the following:
Only show individuals based on 'group' filter in the filter on the third tab, which will effect the 'individual' filter. All groups should be available in the groups filter independent of the individual selection on third tab
No, not with using standard filters. The fact that you have these broken up across tabs doesn't change the fact. When you apply a filter, you are filtering the underlying data-set as whole. Thus, when you select an individual selection on the third tab, it is filtering the underlying data table which feeds all three tabs to this level.
What you can do, is add in an Action Control that will only refresh / remove the filters applied on a certain tab. This will be similar to clicking the Reset All Filters button on the tool bar, except we can apply this to your specific page.... in this case the third tab.
In a text area on the second tab
Right Click > Edit Text Area > Insert Action Control
Set the Display text to what ever you want
Control type: Button or Image... perhaps something like this
Available actions > Pages and visualizations: Navigate to the third tab page name and click Add
Available actions > Functions: Navigate to Reset All Filters and click Add
Additionally, you may want to add Unmark Marked Rows as well
NOTE: This should be done IN THIS ORDER
Now, when you navigate back to the second tab, you can click this button / image you have inserted to remove the filters applied on the third tab without removing those applied in the first tab.
Another way would be some IronPython... but I'm not going to serve that up since it's even more complicated.
Also, I would look into Filtering Schemes. It doesn't help this question much, since you are creating cascading filters, but I think you'll find it powerful in future analytic designs.

Displaying items with certain custom field value in Netsuite

Is there a way to display or filter (by editing a Template) all the products that match a certain Custom Field parameter (in example "custitem_outlet)"?
I have already added on the Netsuite backend these custom fields as checkboxes.
I would like to show the items on different Lists, in example one list will show the items with "custitem_outlet" checked and the other with "custitem_arrivals" checked.
Thanks in advance!

Magento faceted search only shows filters of current page

We are using SOLR as our search engine. When I search for a product, say "computer", the filters on the left side only shows the filters for the results of the current page.
Suppose I have 35 IBM computers and 15 TULIP, my page would display only 10 products per page. I would have 5 pages then. The first two pages, maybe only have IBM computers, then IBM and Tulip, and then only Tulip.
The thing is, when I am on page 1, the filter "Brand" on the left side only shows the option to filter by "IBM", because that's the only brand on the page.
How can I make sure that the brand from all the search results are used to display the brand filters.
In the end the problem was a function getIsEngineAvailableForNavigation() which can be found in /app/code/core/Enterprise/Search/Helper/Data.php.
The price tax check was causing our problems.

Resources