如何覆盖odoo中的js函数

我想加载/购物/结帐url。 function是:

odoo.define('change_info_order.website_sale_change_info_order', function (require) { "use strict"; $('.oe_website_sale').each(function () { var oe_website_sale = this; $(oe_website_sale).on('click', 'a.js_checkout_btn', function (ev) { var e = document.getElementById("js_customer_change"); // var customer_id = e.options[e.selectedIndex].value; var customer_id = **e.value**; if (customer_id) { window.location.href = '/shop/checkout'; } else { Dialog.alert(self, _t("Please select the customer")); }; }); }); }); 

我的inheritance代码是:

 odoo.define('website_sale_product_list.website_sale_change_info_order', function (require) { "use strict"; $('.oe_website_sale').each(function () { var oe_website_sale = this; $(oe_website_sale).on('click', 'a.js_checkout_btn', function (ev) { window.location.href = '/shop/checkout'; }); }); }); 

问题是无法加载我inheritance的javascript文件。 如何解决这个问题? 我需要任何解决方案。 安慰: 在此处输入图像描述

行代码是: 在此处输入图像描述

/ comment:我的js文件无法加载/