I've followed instructions in this post
to add javascript file to the front end (inheriting a template from website.assets_frontend)
When I log with a user that has permission to alter qweb the js is downloaded, but when I log with a user without that permission or with the anonymous user, the script is not downloaded.
I need this js script for anonymous users. What's wrong? what should i do?
<template id="assets_frontend" inherit_id="website.assets_frontend" name="menora_website assets">
<xpath expr="/t" position="inside">
<script type="text/javascript" src="/website_my_module/static/src/js/my_assets.js"></script>
</xpath>
</template>
this code works for admin user but not for the anonymous user
//my_assets.js
$(document).ready(function () {
"use strict";
var website = openerp.website; var _t = openerp._t;
$('#birdthdate').datepicker();
});