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

useAssets has been deprecated in 16.0 #4899

Open
wants to merge 1 commit into
base: 16.0
Choose a base branch
from

Conversation

poma-odoo
Copy link
Contributor

useAssets was introduced in 15.0 but removed in 16.0 in odoo/odoo@8603d13

Now there is an easier way to do it

useAssets was introduced in 15.0 but removed in 16.0 in odoo/odoo@8603d13 

Now there is an easier way to do it
@robodoo
Copy link
Collaborator

robodoo commented Jun 27, 2023

@poma-odoo poma-odoo requested a review from sdegueldre June 27, 2023 09:06
@sdegueldre
Copy link
Contributor

That's not the case, Widget is not a class that cannot be extended in this fashion, it's a legacy feature that's extended using Widget.extend. The proper way to load assets in 16.0 for components is to use onWillStart in combination with loadJS/loadCSS/loadBundle

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.

3 participants