forked from OCA/server-ux
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] base_custom_filter: add search feature
- Loading branch information
1 parent
f5faf0a
commit d5a06bc
Showing
10 changed files
with
212 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,23 @@ | ||
#. Go to *Settings > Custom Filters*. | ||
#. Create a new Custom Filter, and define following information: | ||
|
||
* The **Model** for which you are defining the filter. | ||
* The **Type** depending on whether you want to add a filter or a grouping by | ||
by a field. | ||
* The **Domain** that will be applied with the filter. | ||
* The **Group By Field** used to perform the group by. | ||
* The **Group** to have filters under the same separator. | ||
|
||
#. You can reorder records from the list view with the arrow handle. This will | ||
determine the order in which they appear in the filters/groupby menu. | ||
#. A separator is added between each custom filter added. You can create Custom | ||
Filter Groups to group filters that you want to have displayed under the same | ||
separator. | ||
#. Create a record assigning model, type (search/filter/groupby) and necessary attributes. | ||
Available fields and corresponding attributes (in brackets) for each type are as follows: | ||
|
||
Search: | ||
|
||
* Search Field (``name``) | ||
* Filter Domain (``filter_domain``) | ||
* Domain (``domain``) | ||
* User Groups (``groups``) | ||
|
||
Filter: | ||
|
||
* Domain (``domain``) | ||
* User Groups (``groups``) | ||
|
||
Group By: | ||
|
||
* Group By Field (field to be assigned to ``group_by`` context) | ||
* User Groups (``groups``) | ||
|
||
See `the official documentation <https://www.odoo.com/documentation/16.0/developer/reference/backend/views.html#search>`_ for the definition of each attribute. | ||
Additionally, filter and group-by records can be respectively grouped together with "Group" assignment (there will be a separator in between groups). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
This module allows to define custom filters to be shown under the standard | ||
filters and group by menus of a model's search view. | ||
This module enables the definition of bespoke searches within a model's search view, in | ||
addition to permitting the creation of custom filters that will be displayed beneath the | ||
standard filters, as well as within the group-by menus of a model's search view. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.