Categories
Engineering Programming Technology Technology web

Javascript won’t load or update in Odoo

If you are debugging JavaScript code in Odoo and it happens that you can’t get it updated or worst it’s not loading the official documentation is a good reference “What to do if a file is not loaded/updated”. But I experienced and issue as I always use –dev=all and the JavaScript won’t load at all sometimes. My solution was simply to remove –dev=all from the command line when staring Odoo ./start_odoo -d YOU_DATABASE_NAME –workers=0 -u YOUR_MODULE_NAME_THAT_CONTAINS_THE_JAVASCRIPT and than stop Odoo and start it again with the –dev=all this will refresh the assets.

By gharib larbi

I am an electrical engineer who loves programming. I like drawing and think and imagine my next video about cooking or how to fix my laptop or my cell. I gave myself a goal to fly a plane. I still have a lot of ideas to come.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.