-
-
Notifications
You must be signed in to change notification settings - Fork 545
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIX] Fix to enable or not the multi-search and add all separator
- Loading branch information
Showing
7 changed files
with
40 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<odoo> | ||
<record id="multi_search_separator" model="ir.config_parameter"> | ||
<field name="key">multi_search_separator_base</field> | ||
<field name="value">|;</field> | ||
<field name="value">|; ,</field> | ||
</record> | ||
</odoo> |
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,7 +1,7 @@ | ||
This module allows mulit_searching for all search. | ||
For that, it add code before the search function. | ||
|
||
It will allows you to search for multi_value separate by the a character that you | ||
It will allows you to search for multi_value separate by the character that you | ||
have configure. | ||
* It will split the value like this: | ||
[("name", "ilike","Hart|perry;kelly")] => ['|', '|', '|', '|', '|' ("name", "ilike","Hart|perry;kelly"), ("name", "ilike","Hart|perry"), ("name", "ilike","Hart"), ("name", "ilike","perry;kelly"), ("name", "ilike","kelly"), ("name", "ilike","kelly")] | ||
[("name", "ilike","/Hart|perry;kelly")] => ['|', '|', '|', '|', '|' ("name", "ilike","Hart|perry;kelly"), ("name", "ilike","Hart|perry"), ("name", "ilike","Hart"), ("name", "ilike","perry;kelly"), ("name", "ilike","kelly"), ("name", "ilike","kelly"), ("name", "ilike", "/Hart|perry;kelly")] |
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,10 +1,14 @@ | ||
To use mulit_search you must put an "/" before the value you want to search. | ||
like this "/Kelly perry hart" | ||
Do not put a separator between the first value and "/". | ||
|
||
* Before: | ||
searching "kelly|perry;hart" in employee, will give a none result. | ||
searching "/kelly|perry;hart" in employee, will give a none result. | ||
|
||
.. image:: ../static/description/img/Before_multi_search.png | ||
|
||
* After: | ||
Searching "kelly|perry;hart" in employee, will give "Kelly", "Perry" | ||
Searching "/kelly|perry;hart" in employee, will give "Kelly", "Perry" | ||
and "Hart" | ||
|
||
.. image:: ../static/description/img/After_multi_search.png |
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