-
-
Notifications
You must be signed in to change notification settings - Fork 532
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[17.0][MIG] base_search_custom_field_filter: Migration to 17.0 #851
[17.0][MIG] base_search_custom_field_filter: Migration to 17.0 #851
Commits on Apr 4, 2024
-
[ADD] base_search_custom_field_filter: Add custom filters for fields …
…via UI This module allows to define custom filters in the search views for an specific field belonging to the document or any other related document. This nature makes the definition quite technical, but once done, it adds the element in the UI for regular user use. Configuration ============= * Go to *Settings > Technical > User Interface > Custom Field Filters*. * Create a new record, and define following information: * The **Model** for which you are defining the filter. It will appear in all the search views of this model. * The label you want to see on the search line on the **Name** field. This field allows translations for proper UI in different languages. * The **Expression**, which is the field chain string with dot notation. Examples: `product_id`, `product_id.seller_ids.name`, `partner_id.lang`. * Optionally, you can fill **Position After** for indicating after which existing field (technical name) the filter will appear. If empty or not found, the filter will be added at the end. * You can reorder records for determining sorting for multiple filters for the same model with the arrow handle in the left part. Usage ===== * Go to the menu entry for which you have defined the custom field filter. * On the search bar, type anything. * In the filter list, you will see the line for the element you have defined. As demo data, a custom field filter is included for sample purposes. Steps for trying this sample: * Install `contacts` module. * Go to *Contacts*. * Type "english" and you'll find the filter "Language" at the end.
Configuration menu - View commit details
-
Copy full SHA for e7033c4 - Browse repository at this point
Copy the full SHA e7033c4View commit details -
[FIX] base_search_custom_field_filter: Avoid problem with records wit…
…h same field content If the field you are looking for is a relational one, and contains the same value in different records, when you unfold the results and select one of them, the results of the search belongs to the first ocurrence instead the specific selected record. This is due to Odoo JS code using same operator in this kind of search when filter_domain is used in the filter. We avoid this letting the standard field code to act, but injecting a custom attr that overwrites the left leaf of the domain.
Configuration menu - View commit details
-
Copy full SHA for 8d71d3e - Browse repository at this point
Copy the full SHA 8d71d3eView commit details -
Configuration menu - View commit details
-
Copy full SHA for 18f9957 - Browse repository at this point
Copy the full SHA 18f9957View commit details -
Configuration menu - View commit details
-
Copy full SHA for 47aeccc - Browse repository at this point
Copy the full SHA 47aecccView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6a47b65 - Browse repository at this point
Copy the full SHA 6a47b65View commit details -
Configuration menu - View commit details
-
Copy full SHA for c0be08a - Browse repository at this point
Copy the full SHA c0be08aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 44024a2 - Browse repository at this point
Copy the full SHA 44024a2View commit details -
Configuration menu - View commit details
-
Copy full SHA for 459d864 - Browse repository at this point
Copy the full SHA 459d864View commit details -
Configuration menu - View commit details
-
Copy full SHA for 48482fa - Browse repository at this point
Copy the full SHA 48482faView commit details -
Configuration menu - View commit details
-
Copy full SHA for e2bfe57 - Browse repository at this point
Copy the full SHA e2bfe57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 89ce14f - Browse repository at this point
Copy the full SHA 89ce14fView commit details -
Configuration menu - View commit details
-
Copy full SHA for 0d1a008 - Browse repository at this point
Copy the full SHA 0d1a008View commit details -
Configuration menu - View commit details
-
Copy full SHA for ff1cfdb - Browse repository at this point
Copy the full SHA ff1cfdbView commit details -
Translated using Weblate (Spanish)
Currently translated at 94.7% (18 of 19 strings) Translation: server-ux-14.0/server-ux-14.0-base_search_custom_field_filter Translate-URL: https://translation.odoo-community.org/projects/server-ux-14-0/server-ux-14-0-base_search_custom_field_filter/es/
Configuration menu - View commit details
-
Copy full SHA for 8746e17 - Browse repository at this point
Copy the full SHA 8746e17View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7654ac5 - Browse repository at this point
Copy the full SHA 7654ac5View commit details -
Configuration menu - View commit details
-
Copy full SHA for c46259d - Browse repository at this point
Copy the full SHA c46259dView commit details -
Translated using Weblate (Italian)
Currently translated at 100.0% (19 of 19 strings) Translation: server-ux-14.0/server-ux-14.0-base_search_custom_field_filter Translate-URL: https://translation.odoo-community.org/projects/server-ux-14-0/server-ux-14-0-base_search_custom_field_filter/it/
Configuration menu - View commit details
-
Copy full SHA for 51cdee6 - Browse repository at this point
Copy the full SHA 51cdee6View commit details -
Configuration menu - View commit details
-
Copy full SHA for e63fc55 - Browse repository at this point
Copy the full SHA e63fc55View commit details -
[FIX] base_search_custom_field_filter: Resolve the error when the exp…
…ression has related fields (dot notation). TT38575
Configuration menu - View commit details
-
Copy full SHA for fc98258 - Browse repository at this point
Copy the full SHA fc98258View commit details -
Configuration menu - View commit details
-
Copy full SHA for fa580db - Browse repository at this point
Copy the full SHA fa580dbView commit details -
Configuration menu - View commit details
-
Copy full SHA for 6674541 - Browse repository at this point
Copy the full SHA 6674541View commit details -
Configuration menu - View commit details
-
Copy full SHA for 029acd3 - Browse repository at this point
Copy the full SHA 029acd3View commit details -
Configuration menu - View commit details
-
Copy full SHA for 7c23812 - Browse repository at this point
Copy the full SHA 7c23812View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1f372d1 - Browse repository at this point
Copy the full SHA 1f372d1View commit details -
Configuration menu - View commit details
-
Copy full SHA for 10a6c31 - Browse repository at this point
Copy the full SHA 10a6c31View commit details -
Configuration menu - View commit details
-
Copy full SHA for 3e62a36 - Browse repository at this point
Copy the full SHA 3e62a36View commit details -
Translated using Weblate (Spanish)
Currently translated at 100.0% (19 of 19 strings) Translation: server-ux-16.0/server-ux-16.0-base_search_custom_field_filter Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_search_custom_field_filter/es/
Configuration menu - View commit details
-
Copy full SHA for 912337a - Browse repository at this point
Copy the full SHA 912337aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 282085e - Browse repository at this point
Copy the full SHA 282085eView commit details -
Translated using Weblate (Italian)
Currently translated at 100.0% (19 of 19 strings) Translation: server-ux-16.0/server-ux-16.0-base_search_custom_field_filter Translate-URL: https://translation.odoo-community.org/projects/server-ux-16-0/server-ux-16-0-base_search_custom_field_filter/it/
Configuration menu - View commit details
-
Copy full SHA for 365205d - Browse repository at this point
Copy the full SHA 365205dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b47a10a - Browse repository at this point
Copy the full SHA b47a10aView commit details -
Configuration menu - View commit details
-
Copy full SHA for e99f417 - Browse repository at this point
Copy the full SHA e99f417View commit details