我想加载/shop/checkout url。
函数是:
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';
});
});
});
Problem is can't load my inherited javascript file. How to fix this problem?
I need any solution.
Console:
the line code is:
/comment:我的js文件无法加载/
None
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)