Skip to content

[18.0][MIG] website_event_require_login: Migration to 18.0#496

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

[18.0][MIG] website_event_require_login: Migration to 18.0#496
mathben wants to merge 2 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.

- add data require-login into form registration
- remove registration flow modal when detect registration require from
Javascript
- add contributor TechnoLibre
@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).

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.

1 participant