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

[17.0][FIX] web_responsive: Fix blank screen on search (support menus w/o xmlid) #3105

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

ryanc-me
Copy link

@ryanc-me ryanc-me commented Feb 24, 2025

If a menu item is created manually via the Odoo UI, then it (likely) won't have an xmlid. This code should use id as the t-key instead, as that is always available.

Fixes #3104

Explanation: With asset debugging enabled, we get an error Error: Got duplicate key in t-foreach, because multiple elements have a blank "" xmlid, and so we hit a key conflict.

@OCA-git-bot
Copy link
Contributor

Hi @Tardo, @SplashS,
some modules you are maintaining are being modified, check this out!

@ryanc-me
Copy link
Author

This might also affect the 18.0 version (#3037)

@pedrobaeza
Copy link
Member

Please rewrite the commit message (and the PR title) according guidelines: https://github.com/OCA/odoo-community.org/blob/master/website/Contribution/CONTRIBUTING.rst#commit-message

@pedrobaeza pedrobaeza added this to the 17.0 milestone Feb 24, 2025
@ryanc-me ryanc-me force-pushed the 17.0-web_responsive-blank-screen branch from b8105dc to 18638cb Compare February 25, 2025 02:14
…mlid)

If a menu item is created manually via the Odoo UI, then it (likely) won't have an xmlid. As a result, the `t-foreach` fails, resulting in the whole Odoo UI crashing (a blank white screen is shown). This code should use `id` as the `t-key` instead, as that is *always* available, even for menu items created manually.
@ryanc-me ryanc-me force-pushed the 17.0-web_responsive-blank-screen branch from 18638cb to a1b29f3 Compare February 25, 2025 02:17
@ryanc-me ryanc-me changed the title Support ir.ui.menu records with no xmlid [17.0][FIX] web_responsive: Fix blank screen on search (support menus w/o xmlid) Feb 25, 2025
@ryanc-me
Copy link
Author

@pedrobaeza Apologies, fixed now.

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

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

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

On my way to merge this fine PR!
Prepared branch 17.0-ocabot-merge-pr-3105-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit b9f6075 into OCA:17.0 Feb 26, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 457b9ed. Thanks a lot for contributing to OCA. ❤️

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

Successfully merging this pull request may close these issues.

4 participants