How do you load javascript files in version 8? In version 7, you could simply show the location of js
in manifesto file (__openerp__.py
) like this:
'js': ['static/src/js/file.js'],
Now it does not work.
For example I created js file in my module with this code:
openerp.calendar_service = function(instance) {
var _t = instance.web._t,
_lt = instance.web._lt,
QWeb = instance.web.qweb;
instance.calendar_service = {};
console.log('TEST')
};
But using debugger, I don't see that TEST
is printed. If I add such print in some source js files (in other modules), it will print it fine. So how do I make my js files load?