Skip to Content
Menu
This question has been flagged
1 Reply
1687 Views

Since a couple of updates of odoo 14.0 I cannot open the web editor anymore due to the following error when the editor button is clicked:

Uncaught TypeError: dom.addButtonLoadingEffect is not a function
https://xxxxxxx.com/web/content/7537-cf6a95b/1/web.assets_frontend_lazy.js:187
Rastreo de error:
TypeError: dom.addButtonLoadingEffect is not a function
    at Class._onActionMenuClick (https://xxxxxx.com/web/content/7537-cf6a95b/1/web.assets_frontend_lazy.js:187:269)
    at HTMLAnchorElement.<anonymous> (https://xxxxxxx.com/web/content/4070-608e817/1/web.assets_common_lazy.js:4666:11)
    at HTMLElement.dispatch (https://xxxxxx.com/web/content/4070-608e817/1/web.assets_common_lazy.js:1627:447)
    at HTMLElement.elemData.handle (https:/xxxx.com/web/content/4070-608e817/1/web.assets_common_lazy.js:1613:166)

I trace back the addButtonLoadingEffect function to the file "addons/web/static/src/js/core/dom.js" so I reinstalled the web application as well as the website and web_editor but no luck. 

Deleting the function call (const restore=dom.addButtonLoadingEffect(ev.currentTarget);) from the file and everything works again.... But this is just a workaround obviously.

I know for a fact that the file is in the server and the function is there but somehow it is not being loaded...

Can someone give some light on how to fix the isssue?

Regards.

Avatar
Discard
Author Best Answer

Solved as easy as click in Regenerate Assets Bundles

Avatar
Discard