Skip to content

Instantly share code, notes, and snippets.

@3mrdev
Created October 8, 2022 16:46
Show Gist options
  • Save 3mrdev/664a9565a17afb014f4fd8febdd1096a to your computer and use it in GitHub Desktop.
Save 3mrdev/664a9565a17afb014f4fd8febdd1096a to your computer and use it in GitHub Desktop.
How to add css and js to Odoo? (Odoo 15 and later)
{
'name':'Your module manifest name'
'assets': {
'web.assets_backend': [
'your_module/static/src/js/your_css.your_css',
'your_module/static/src/js/your_js.js',
],
'web.assets_common': [
'your_module/static/src/js/your_css.your_css',
'your_module/static/src/js/your_js.js',
],
'web.qunit_suite_tests': [
'your_module/static/src/js/your_css.your_css',
'your_module/static/src/js/your_js.js',
],
},
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment