Skip to content
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

[FIX] web_chatter_position: Fixes bug where incompatible apps crash #2595

Closed
wants to merge 1 commit into from

Conversation

Florian-Laport
Copy link

In some (new) apps, the query selector querySelector('.o_form_sheet_bg') in web_chatter_position will not return anything. This causes a crash when you try to open the app in question.

You can replicate this by installing both the new 'Knowledge' app, as well as web_chatter_position, and trying to open the former when the current user's preferences have been set to chatter position 'bottom'.

Odoo avoids this problem by exiting early without a chatter if there no sheet-bg. This PR implements the exact same solution. See the Odoo source here.

@Florian-Laport
Copy link
Author

Apparently duplicate of #2571 as it fixes the same issue. Leaving it open because I think this one should be merged instead. May be closed otherwise.

@Florian-Laport
Copy link
Author

#2571 was merged so I'm closing this.

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