Help

0

Syntax error in custom javascript breaks all javascript functionality

Avatar
Raul Barroso

I am using Odoo 14 (Enterprise Edition). I have been customizing my website's javascript through the JS Editor in the Customize tab in the Website App. The last time I updated the custom js file, I left in a syntax error. This of course cancels all the javascript in the file, but it also seems to break all other js functionality, which means I can no longer access the JS Editor to fix the syntax error. Is there another way to edit the js file? If not, what can I do?

1 Comment
Avatar
Discard
Avatar
João Hackbart
-

Sorry for using the answer to comment, but I've just created this account and I can't comment yet.


I've run into the same problem and I was wondering if you've managed to find a solution?

1 Answer
0
Avatar
Raul Barroso
Best Answer

Yes! I found the following solution. If you go to Settings and activate Developer mode (with assets) it seems to block the custom javascript but not the native one, allowing you to open the custom javascript editor and fix the error.

Avatar
Discard