Skip to content

Syncing from upstream OCA/event (19.0) - #560

Merged
bt-admin merged 89 commits into
brain-tec:19.0from
OCA:19.0
Aug 15, 2026
Merged

bt-admin merged 89 commits into
brain-tec:19.0from
OCA:19.0

Conversation

@bt-admin

Copy link
Copy Markdown

bt_gitbot

yajo and others added 30 commits August 10, 2026 08:02
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 #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.
[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
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.
Includes update to use new tours api.

Patch event counts when a city is searched.
[IMP] Use new README approach

[IMP] Removed the use of @Class

[FIX] Column classes

[UPD] README.rst

[UPD] README.rst
- 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
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
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
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
- 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
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/
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/
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/
Currently translated at 100.0% (12 of 12 strings)

Translation: event-17.0/event-17.0-website_event_filter_city
Translate-URL: https://translation.odoo-community.org/projects/event-17-0/event-17-0-website_event_filter_city/it/
When the country filter is inactive, the node used is a span but when
the country filter is activated with the editor, the node is replaced
by a div and this causes an error. To avoid this, the node is replaced
by something generic ‘*’ and so it will be located by its identifying
class regardless of whether the element is a span or a div.
Currently translated at 66.6% (8 of 12 strings)

Translation: event-18.0/event-18.0-website_event_filter_city
Translate-URL: https://translation.odoo-community.org/projects/event-18-0/event-18-0-website_event_filter_city/de/
Currently translated at 66.6% (8 of 12 strings)

Translation: event-18.0/event-18.0-website_event_filter_city
Translate-URL: https://translation.odoo-community.org/projects/event-18-0/event-18-0-website_event_filter_city/de/
[ADD][8.0] event_email_reminder: Send reminder events by email
mymage and others added 28 commits August 13, 2026 15:08
Currently translated at 100.0% (40 of 40 strings)

Translation: event-15.0/event-15.0-crm_event
Translate-URL: https://translation.odoo-community.org/projects/event-15-0/event-15-0-crm_event/it/
Currently translated at 100.0% (40 of 40 strings)

Translation: event-15.0/event-15.0-crm_event
Translate-URL: https://translation.odoo-community.org/projects/event-15-0/event-15-0-crm_event/es/
This migration removes the `read_group` for event totals calculation in
the _compute_event_total method because the `seats_available` field in
v17 is not stored (`compute` and `store=False`). This makes `read_group`
unable to correctly process and calculate the value of the
`seats_available` field, as it operates directly on data stored
in the database.
Instead, a manual calculation is implemented which:
- Iterates over the filtered events according to the domain.
- Groups the data by `event_type_id`.
- Calculates the total number of available seats and the number of
events associated with each type.

TT51918
Signed-off-by pedrobaeza
Signed-off-by pedrobaeza
Signed-off-by pedrobaeza
Signed-off-by pedrobaeza
Signed-off-by pedrobaeza
@bt-admin bt-admin added the 19.0 label Aug 15, 2026
@bt-admin
bt-admin merged commit c06c2fa into brain-tec:19.0 Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.