Some one can told me which is the correct way to add js library to a odoo v16 website via custom addon ?
Share and discuss the best content and new marketing ideas, build your professional profile and become a better marketer together.
Some one can told me which is the correct way to add js library to a odoo v16 website via custom addon ?
Hi,
Put the JavaScript file under module_name -> static -> src-> js folder.
You can create the directory if you haven’t.
And in manifest,
'assets': {
'web.assets_frontend': [
'module_name/static/src/js/file_name.js’]
}Regards
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign up