我想加载/ shop / checkout网址。 功能是:
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"));
};
});
});
});
我的继承代码是:
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';
});
});
});
问题是无法加载我继承的JavaScript文件。如何解决这个问题? 我需要任何解决方案。 安慰:
/评论:我的js文件无法加载/