I encountered an issue while trying to install a module on Odoo version 10. The JavaScript file begins with this code snippet:
openerp.my_module_name = function(instance) {
console.log('Something');
}
When I checked the browser console, it displayed the following error message:
Uncaught ReferenceError: openerp is not defined
This code works fine in other versions of Odoo. What could have changed and how can I resolve this problem?