Hello, I have an issue with odoo 18. i created a custom module meant for snippets and wondering why my js files not showing up and the dynamic snippet is not being loaded up. It was working at first but on trying again on different database, it is not working . What could be the issue. Thanks in advance.
//manifest file
{
"name": "my Ecommerce Snippets",
"version": "1.0",
"category": "Theme/Website", # Changed from 'Themes/Website'
"summary": "Custom e-commerce theme with snippets",
"license": "LGPL-3",
"author": "eli",
"maintainer": "eli Techno Solutions",
"website": "",
"images": [
"static/description/icon.png", # Optional: for app store banner/screenshots
],
"depends": ["website", "website_sale"], # Added theme_default
"data": [
"views/snippets/static_template.xml",
"views/snippets/new_arrivals_initializer.xml",
"views/snippets/medicine_categories_initializer.xml",
"views/snippets/campaigns_carousel_initializer.xml",
"views/snippets/trusted_brands_initializer.xml",
"views/snippets/snippets.xml",
],
"assets": {
"web.assets_frontend": [
"/my_ecommerce_website/static/src/js/new_arrivals_snippet.js",
"/my_ecommerce_website/static/src/js/medicine_categories_snippet.js",
"/my_ecommerce_website/static/src/xml/new_arrivals_snippet_templates.xml",
"/my_ecommerce_website/static/src/xml/medicine_categories_snippet_templates.xml",
],
},
"installable": True,
"auto_install": False,
"application": False,
}