Skip to content
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

Merged

Commits on Apr 4, 2024

  1. [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.
    pedrobaeza authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    e7033c4 View commit details
    Browse the repository at this point in the history
  2. [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.
    carlosdauden authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    8d71d3e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    18f9957 View commit details
    Browse the repository at this point in the history
  4. [ADD] icon.png

    OCA-git-bot authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    47aeccc View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    6a47b65 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    c0be08a View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    44024a2 View commit details
    Browse the repository at this point in the history
  8. [UPD] README.rst

    OCA-git-bot authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    459d864 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    48482fa View commit details
    Browse the repository at this point in the history
  10. [MIG] 14.0 base_search_custom_field_filter

    Pierrick Brun authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    e2bfe57 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    89ce14f View commit details
    Browse the repository at this point in the history
  12. [UPD] README.rst

    OCA-git-bot authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    0d1a008 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    ff1cfdb View commit details
    Browse the repository at this point in the history
  14. 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/
    anasuarez1 authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    8746e17 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    7654ac5 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    c46259d View commit details
    Browse the repository at this point in the history
  17. 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/
    francesco-ooops authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    51cdee6 View commit details
    Browse the repository at this point in the history
  18. Configuration menu
    Copy the full SHA
    e63fc55 View commit details
    Browse the repository at this point in the history
  19. [FIX] base_search_custom_field_filter: Resolve the error when the exp…

    …ression has related fields (dot notation).
    
    TT38575
    victoralmau authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    fc98258 View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    fa580db View commit details
    Browse the repository at this point in the history
  21. [MIG] base_search_custom_field_filter: Migration to 15.0

    Aung Ko Ko Lin authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    6674541 View commit details
    Browse the repository at this point in the history
  22. [UPD] Update base_search_custom_field_filter.pot

    oca-ci authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    029acd3 View commit details
    Browse the repository at this point in the history
  23. [UPD] README.rst

    OCA-git-bot authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    7c23812 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    1f372d1 View commit details
    Browse the repository at this point in the history
  25. [UPD] Update base_search_custom_field_filter.pot

    oca-ci authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    10a6c31 View commit details
    Browse the repository at this point in the history
  26. [UPD] README.rst

    OCA-git-bot authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    3e62a36 View commit details
    Browse the repository at this point in the history
  27. 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/
    Ivorra78 authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    912337a View commit details
    Browse the repository at this point in the history
  28. [UPD] README.rst

    OCA-git-bot authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    282085e View commit details
    Browse the repository at this point in the history
  29. 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/
    mymage authored and nguyenminhchien committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    365205d View commit details
    Browse the repository at this point in the history
  30. Configuration menu
    Copy the full SHA
    b47a10a View commit details
    Browse the repository at this point in the history
  31. Configuration menu
    Copy the full SHA
    e99f417 View commit details
    Browse the repository at this point in the history