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

[16.0][ADD] website_event_filter_city #403

Open
wants to merge 27 commits into
base: 16.0
Choose a base branch
from

Commits on Sep 17, 2024

  1. [8.0][website_event_filter_selector] Filter events with selectors.

    You can use selectors above the event list in the website, instead of the left column that there is right now.
    
    Store user customizations in separate template.
    
    Acknowledge that you cannot hide only the date filter.
    
    Remove search button; search on selection change.
    
    Fix bug where date did not match what was being filtered.
    
    [FIX][8.0][website_event_filter_selector] Do not die without types or countries
    
    This basically fixes OCA#44 and a similar bug detected that would happen when no countries were found.
    
    It just adds a `t-if` to avoid possible failures, [borrowing the idea from core `website_event` module](https://github.com/odoo/odoo/blob/8.0/addons/website_event/views/website_event.xml#L167).
    
    [8.0][IMP][website_event_filter_selector] Add city filter for events.
    
    Since this includes new logic, it adds also a template for left-column filters.
    
    With this patch, you can now filter events depending on their cities, not only on their countries.
    
    This also includes some modifications that will make filters occupy always a full bootstrap row, no matter if there are 1, 2, 3 or 4 filters, to avoid ugly layouts.
    yajo authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    a17ddb9 View commit details
    Browse the repository at this point in the history
  2. [IMP] website_event_filter_selector

    [IMP] website_event_filter_selector: Spanish translation
    
    [IMP] website_event_filter_selector: German translation
    
    [FIX] website_event_filter_selector: Fix date selection
    
    [FIX] website_event_filter_selector: Fix city count
    
    [FIX] website_event_filter_selector: Don't lose context with new obj
    pedrobaeza authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    fbe4dd1 View commit details
    Browse the repository at this point in the history
  3. [9.0][website_event_filter_selector] Migrate.

    Relicensed to LGPL, new JS API.
    
    Add test. Fix errors found with it.
    
    Go 100% coverage. Support online events.
    
    [FIX][website_event_filter_selector] Fix Travis build
    
    Builds failed on 2017-03-31 because the tour was expecting to see USA event starting in this month, but next day was another month.
    
    Well, in short, this fix makes the tour work on any day.
    yajo authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    338ce1a View commit details
    Browse the repository at this point in the history
  4. [10.0][MIG][website_event_filter_selector]

    Includes update to use new tours api.
    
    Patch event counts when a city is searched.
    yajo authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    cd631c1 View commit details
    Browse the repository at this point in the history
  5. [MIG] website_event_filter_selector: Migration to 11.0

    [IMP] Use new README approach
    
    [IMP] Removed the use of @Class
    
    [FIX] Column classes
    
    [UPD] README.rst
    
    [UPD] README.rst
    tarteo authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    0eecdc3 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    3872138 View commit details
    Browse the repository at this point in the history
  7. [FIX] website_event_filter_selector: Update tour

    - Use own demo data instead of upstream.
    - Fix some JS code that wasn't working as expected.
    - Remove dependency on left column; just test own filters widget.
    
    [UPD] README.rst
    
    [UPD] README.rst
    yajo authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    bec5c27 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c02c2c8 View commit details
    Browse the repository at this point in the history
  9. [IMP] website_event_filter_selector: simpler automatic width

    With BS3, all these complex computations were needed to always display all filters at full width.
    
    With BS4 it's not needed anymore.
    
    @Tecnativa TT17632
    
    website_event_filter_selector 12.0.1.1.0
    Jairo Llopis authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    c23d3dd View commit details
    Browse the repository at this point in the history
  10. [IMP] website_event_filter_selector: make prettier

    Use `custom-select` in `<select>` elements instead of just `form-control`. This way BS4 can style the dropdowns more freely and they look more consistent with the rest of the site.
    
    I also delete a view that is no longer used.
    
    TT17632
    
    website_event_filter_selector 12.0.1.2.0
    Jairo Llopis authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    f51a949 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    01bc8d9 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    8c7a5a1 View commit details
    Browse the repository at this point in the history
  13. [FIX] website_event_filter_selector: ignore events from other websites

    To reproduce the problem:
    
    1. Create an event on website 2.
    2. Do not publish it.
    3. Go to website 1.
    
    If you were logged in, that event still appeared as unpublished. It shouldn't happen because it belongs to other website, no matter whether it is published or not.
    
    @Tecnativa TT29748
    Jairo Llopis authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    1ed55a9 View commit details
    Browse the repository at this point in the history
  14. [IMP] website_event_filter_selector: maintain it

    Ok, bot, you win.
    Jairo Llopis authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    c922b8d View commit details
    Browse the repository at this point in the history
  15. [IMP/FIX] website_event_filter_city: search input and refactor

    - Refactor to try to reuse as much from the core as possible. Anyway, as
    there's no external method to compose the domain we still have to redo
    some things in order to add our city filter stuff.
    - Consider the new name search term.
    - Fix test: it didn't expect online events when filtering by country,
    but Odoo core allows it explicitly.
    
    TT34958
    chienandalu authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    6aaeaa8 View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    35a6398 View commit details
    Browse the repository at this point in the history
  17. [MIG] website_event_filter_city: Migration to 15.0

    TT41028
    chienandalu authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    1ee0d9f View commit details
    Browse the repository at this point in the history
  18. [UPD] Update website_event_filter_city.pot

    oca-ci authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    83253dc View commit details
    Browse the repository at this point in the history
  19. [UPD] README.rst

    OCA-git-bot authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    ef8f274 View commit details
    Browse the repository at this point in the history
  20. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: event-15.0/event-15.0-website_event_filter_city
    Translate-URL: https://translation.odoo-community.org/projects/event-15-0/event-15-0-website_event_filter_city/
    weblate authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    f208015 View commit details
    Browse the repository at this point in the history
  21. Added translation using Weblate (Italian)

    mymage authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    cc862ae View commit details
    Browse the repository at this point in the history
  22. Translated using Weblate (Italian)

    Currently translated at 100.0% (14 of 14 strings)
    
    Translation: event-15.0/event-15.0-website_event_filter_city
    Translate-URL: https://translation.odoo-community.org/projects/event-15-0/event-15-0-website_event_filter_city/it/
    mymage authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    ce13762 View commit details
    Browse the repository at this point in the history
  23. Translated using Weblate (Italian)

    Currently translated at 100.0% (14 of 14 strings)
    
    Translation: event-15.0/event-15.0-website_event_filter_city
    Translate-URL: https://translation.odoo-community.org/projects/event-15-0/event-15-0-website_event_filter_city/it/
    mymage authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    2a3e820 View commit details
    Browse the repository at this point in the history
  24. [UPD] README.rst

    OCA-git-bot authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    cd1157f View commit details
    Browse the repository at this point in the history
  25. Update translation files

    Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.
    
    Translation: event-15.0/event-15.0-website_event_filter_city
    Translate-URL: https://translation.odoo-community.org/projects/event-15-0/event-15-0-website_event_filter_city/
    weblate authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    49353cd View commit details
    Browse the repository at this point in the history
  26. Translated using Weblate (Spanish)

    Currently translated at 100.0% (14 of 14 strings)
    
    Translation: event-15.0/event-15.0-website_event_filter_city
    Translate-URL: https://translation.odoo-community.org/projects/event-15-0/event-15-0-website_event_filter_city/es/
    Ivorra78 authored and enieber committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    0cc2c8b View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    a1a6b45 View commit details
    Browse the repository at this point in the history