Hi,
We are working on a custom module for our site on Odoo 16 and its needs to load a JS file to the frontend of the site. So we have added it as an asset on the manifest of the module as per the documentation. However, it is not loading for some reason. Here is our manifest:
# -*- coding: utf-8 -*-
{
'name': "soloRV_custom_works",
'summary': """
SoloRV Custom Codes
""",
'description': """
Modifications for the SoloRV Project
""",
'author': "Click Theory",
'website': "Redacted",
'category': 'Uncategorized',
'version': '0.1',
'depends': ['base', 'product', 'sale', 'account', 'website', 'website_sale'],
'data': [
'views/templates.xml',
],
'assets': {
'web.assets_frontend': [
'/soloRV_custom_works/static/src/js/custom.js',
'/soloRV_custom_works/static/src/css/custom.css',
],
},
"auto_install": False,
"application": True,
"installable": True,
}
The CSS loads just fine but for some reason the JS is not loading. I have tried everything I could think of without any luck. Any help is appreciated.
@Gayarthri A, I have tried removing the / before the path name. Let me try with a wildcard selector here.