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

Hi everyone,

I don't really understand how to load Javascript in Odoo. On Odoo official website, it mentions:

  • web.assets_backend: this bundle contains the code specific to the web client (notably the web client/action manager/views)

  • web.assets_frontend: this bundle is about all that is specific to the public website: ecommerce, portal, forum, blog, …

The part I don't understand is what defines a thing is 'web client' or 'public website'. Is there a sign to identify this?

The way I loaded my JS file until now is to try 1 way or another, either 'assets_backend' or 'assets_frontend'. 


Avatar
Discard
Best Answer

assets_frontend is for static files related to Odoo's website.

assets_backend is for static files related to the webclient also known as backend (basically all other apps that are not website). 

Avatar
Discard
Related Posts Replies Views Activity
1
Dec 24
127
2
Nov 24
84
1
Oct 24
264
0
Sep 24
213
2
Sep 24
648