[18.0][MIG] website_event_require_login: Migration to 18.0#496
Open
[18.0][MIG] website_event_require_login: Migration to 18.0#496
Conversation
53b1e1f to
98b188e
Compare
98b188e to
317d3f4
Compare
Author
|
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
57316dd to
eb885f9
Compare
Author
|
I begin to write test with a GPT I test manually multiple case (with/without option, with public/connected user). |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.