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: Make showAppsMenuItem work again #3069

Merged
merged 1 commit into from
Jan 27, 2025

Conversation

carlos-lopez-tecnativa
Copy link
Contributor

In Odoo 17, the Class TourStepUtils was removed, and stepUtils is now an object instead of a class. When this module is installed, the tours stop working and throw the error: Uncaught Error: Dependencies should be defined by an array:

This commit adapts the code to align with these changes, ensuring that tours work correctly.

V16
https://github.com/odoo/odoo/blob/b97f0cfbd6b39d176f9b7e465f6da0722222b010/addons/web_tour/static/src/js/tour_step_utils.js#L7
V17
https://github.com/odoo/odoo/blob/77243bc85db87fad2196052036390f65bd451eeb/addons/web_tour/static/src/tour_service/tour_utils.js#L426

image

@Tecnativa @CarlosRoca13 @pedrobaeza @yajo could you please review this, Thanks!

@OCA-git-bot
Copy link
Contributor

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

@carlos-lopez-tecnativa carlos-lopez-tecnativa force-pushed the 17.0-fix-web_responsive_tours branch from 60983e9 to 1f7f416 Compare January 27, 2025 13:38
Copy link
Contributor

@CarlosRoca13 CarlosRoca13 left a comment

Choose a reason for hiding this comment

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

LGTM 👍

web_responsive/__manifest__.py Outdated Show resolved Hide resolved
In Odoo 17, the Class TourStepUtils was removed, and stepUtils is now an object instead of a class. When this module is installed, the tours stop working and throw the error:
Uncaught Error: Dependencies should be defined by an array: function (require) {.

This commit adapts the code to align with these changes, ensuring that tours work correctly.
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.

The change of dependencies is reasonable, as web_tour is required by most of the top-level applications (sale, account, purchase...).

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 17.0-ocabot-merge-pr-3069-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit da26768 into OCA:17.0 Jan 27, 2025
7 checks passed
@OCA-git-bot
Copy link
Contributor

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

@carlos-lopez-tecnativa carlos-lopez-tecnativa deleted the 17.0-fix-web_responsive_tours branch January 27, 2025 16:36
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.

5 participants