In this recipe, we'll cover how to add custom style sheets and JavaScript to the website.
Extending CSS and JavaScript for the website
Getting ready
We will be using the my_library module from Chapter 4, Creating Odoo Add-on Modules for this recipe. We will add CSS, SCSS, and JavaScript files, which will modify the website. As we are modifying the website, we will need to add website in the dependency. Modify manifests like this:
...
'depends': ['base', 'website'],
...
How to do it...
Override the main website template to inject your...