I have a multi-database setup and need to add the following line
< script type="text/javascript" src="http://age-verify.com/js/opaque.18.js">< /script>
to the < head section which should be executed for a particular database only. I have tried it using the Chrome developer tool but to no avail. I'm a beginner, so I'm happy about any hints.
For the moment, this is a quick and dirty solution for an age verification modal on an odoo website. The javascript should ask for the age confirmation and set a cookie if successful, at best where ever a user lands on the website, if too complicated, it's also enough if it is only on the home page.
When going the module route, I would like to extend the module later for a proper age verification based on company, verification type, (country), product category and concerned landing pages.
@Ermin, I'd recommend putting together a very basic custom module to do this. This way you can just install the module on the database you need to add this for and you'll be good to go. I'd be happy to provide some basic instructions and a link to an example if you like. Could you explain some more details about where you would like to use this javascript (eg. frontend Website CMS - home page). This will help me to provide a suitable answer for your question. Putting together a basic module to add things like custom javascript and css is remarkably easy once you have an understanding of the basic framework of a module and how to inherit with xpath.
I have amended my question.