Skip to content

[18.0][MIG] website_event_require_login#496

Open
mathben wants to merge 54 commits intoOCA:18.0from
TechnoLibre:18.0-mig-website_event_require_login
Open

[18.0][MIG] website_event_require_login#496
mathben wants to merge 54 commits intoOCA:18.0from
TechnoLibre:18.0-mig-website_event_require_login

Conversation

@mathben
Copy link

@mathben mathben commented Feb 22, 2026

Take module from https://github.com/OCA/event/tree/17.0/website_event_require_login, apply OCA migration script and fix the Javascript.

The Javascript from Odoo 17
https://github.com/odoo/odoo/blob/17.0/addons/website_event/static/src/js/website_event.js#L68
is different from Odoo 18
https://github.com/odoo/odoo/blob/18.0/addons/website_event/static/src/js/website_event.js#L72
When detect require_login, cancel the website_event javascript _onClick and show modal.

@mathben mathben force-pushed the 18.0-mig-website_event_require_login branch from 53b1e1f to 98b188e Compare February 23, 2026 01:40
@mathben mathben marked this pull request as ready for review February 23, 2026 01:41
@mathben mathben changed the title WIP [MIG] website_event_require_login: Migration to 18.0 [18.0][MIG] website_event_require_login: Migration to 18.0 Feb 23, 2026
@mathben mathben force-pushed the 18.0-mig-website_event_require_login branch from 98b188e to 317d3f4 Compare February 23, 2026 04:40
@mathben
Copy link
Author

mathben commented Feb 23, 2026

I edit multiple time, it was more simple to store into HTML if need require_login, and change Javascript flow.

@mathben mathben force-pushed the 18.0-mig-website_event_require_login branch 2 times, most recently from 57316dd to eb885f9 Compare February 23, 2026 05:10
@mathben mathben mentioned this pull request Feb 23, 2026
20 tasks
@mathben
Copy link
Author

mathben commented Feb 23, 2026

I begin to write test with a GPT
TechnoLibre@080c839
This version is not working, I leave trace here if someone can help me. I am sure we can merge with the actual version.

I test manually multiple case (with/without option, with public/connected user).

Copy link

@TuxLeGrand TuxLeGrand left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's working fine on my server with Odoo 18

@mathben mathben changed the title [18.0][MIG] website_event_require_login: Migration to 18.0 [18.0][MIG] website_event_require_login Mar 1, 2026
@mathben mathben force-pushed the 18.0-mig-website_event_require_login branch 4 times, most recently from a6d8e31 to c449cba Compare March 2, 2026 05:45
@mathben
Copy link
Author

mathben commented Mar 2, 2026

Would you like to review my PR please @FrancoMaxime @pilarvargas-tecnativa
Thanks!

weblate and others added 25 commits March 2, 2026 01:01
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/
Currently translated at 100.0% (8 of 8 strings)

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/it/
Currently translated at 100.0% (8 of 8 strings)

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/it/
Currently translated at 100.0% (8 of 8 strings)

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/es/
Currently translated at 100.0% (8 of 8 strings)

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/it/
Currently translated at 100.0% (8 of 8 strings)

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/it/
Currently translated at 100.0% (8 of 8 strings)

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/ca/
Currently translated at 100.0% (8 of 8 strings)

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/de/
Currently translated at 100.0% (8 of 8 strings)

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/fr/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: event-16.0/event-16.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-16-0/event-16-0-website_event_require_login/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: event-17.0/event-17.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-17-0/event-17-0-website_event_require_login/
Currently translated at 100.0% (7 of 7 strings)

Translation: event-17.0/event-17.0-website_event_require_login
Translate-URL: https://translation.odoo-community.org/projects/event-17-0/event-17-0-website_event_require_login/fi/
@mathben mathben force-pushed the 18.0-mig-website_event_require_login branch from c449cba to c9dc7d9 Compare March 2, 2026 06:11
Copy link
Contributor

@pilarvargas-tecnativa pilarvargas-tecnativa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hello, thank you for your work. All changes incorporated into the migration should go into the migration commit with the tag [MIG].

- README.md update website_event_require_login
- patch EventRegistrationForm onClick
- add data require-login into form registration
- remove registration flow modal when detect registration require from
Javascript
- add contributor TechnoLibre
tests ui with tours
- test website_event_require_login_public
- test website_event_require_login_auth
@mathben mathben force-pushed the 18.0-mig-website_event_require_login branch from c9dc7d9 to 005f73d Compare March 2, 2026 07:06
@mathben
Copy link
Author

mathben commented Mar 2, 2026

@pilarvargas-tecnativa
Done, only 1 commit with tag [MIG]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.