Javascript code doesn't work in odoo.define but works in developer console
问题 As the pic down below, I want make background-color change when a radio value is changed. this is for ODOO11. I've set js file for template to inherit. but it doesn't work. <template id="assets_backend_weight" name="static_resources_demo assets" inherit_id="web.assets_backend"> <xpath expr="." position="inside"> <script type="text/javascript" src="/yc_root/static/src/js/my_js.js"></script> </xpath> </template> my_js.js odoo.define('yc_root.my_JS', function (require) {"use strict"; var Class =