-
-
Notifications
You must be signed in to change notification settings - Fork 170
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
[17.0][FIX] website_event_filter_city: Country filter support #420
[17.0][FIX] website_event_filter_city: Country filter support #420
Conversation
Hi @yajo, |
Take the occasion to change the maintainer to us, as we are the effective maintainers of the module now. |
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.
2c3bb40
to
10c1143
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It’s a bit strange; I can't reproduce the issue on any Runboat instance, but in this specific instance, the error is present. Thanks for the fix.
http://oca-event-17-0-030f8b6af6fc.runboat.odoo-community.org/
Note: I think it’s a bad practice from Odoo Base if the original view uses a <span>
element and another view replaces it and changes it by <div>
. Could you create an issue on the Odoo repository?
Sometimes runboats are not entirely correct in terms of templates or styles, they can fail and I don't know why, but we always have the option of testing the branch locally. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks :)
/ocabot merge minor |
What a great day to merge this nice PR. Let's do it! |
@pedrobaeza The merge process could not be finalized, because command
|
Congratulations, your PR was merged at cfce9b4. Thanks a lot for contributing to OCA. ❤️ |
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.
cc @Tecnativa
@chienandalu @carlos-lopez-tecnativa please review