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

smile_upgrade: addons.module.ad_paths doesn't exist anymore in 17 #126

Open
benlegros opened this issue Nov 14, 2024 · 0 comments
Open

smile_upgrade: addons.module.ad_paths doesn't exist anymore in 17 #126

benlegros opened this issue Nov 14, 2024 · 0 comments

Comments

@benlegros
Copy link

Hi,

In smile_upgrade on Odoo 17, here is this line in upgrade.py (line 271):

for adp in addons.module.ad_paths:

But ad_paths doesn't exist anymore (replaced after deprecation) and this results to a fatal error during start if line 270 condition is false.

Here is ad_paths() deprecation warning from Odoo 14 code:

# ad_paths is a deprecated alias, please use odoo.addons.__path__ @tools.lazy def ad_paths(): warnings.warn( '"odoo.modules.module.ad_paths" is a deprecated proxy to ' '"odoo.addons.__path__".', DeprecationWarning, stacklevel=2) return odoo.addons.__path__

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

No branches or pull requests

1 participant