优化警告问题
This commit is contained in:
@@ -17,16 +17,10 @@ class CustomKanbanController extends KanbanController {
|
||||
this.workOrders = await this.getAllWorkOrders();
|
||||
// this.workOrdersNew = this.workOrders;
|
||||
// console.log('lines222222222', this.workOrders);
|
||||
//
|
||||
// console.log(typeof this.workOrders);
|
||||
// console.log(Array.isArray(this.workOrders));
|
||||
//
|
||||
// console.log(this.workOrders.every(order =>
|
||||
// typeof order === 'object' && order.id !== undefined));
|
||||
|
||||
|
||||
|
||||
|
||||
// var aDiv = document.getElementsByClassName('o_kanban_record')
|
||||
// for (var i = 0; i < aDiv.length; i++) {
|
||||
// console.log(aDiv[i])
|
||||
@@ -37,7 +31,6 @@ class CustomKanbanController extends KanbanController {
|
||||
buttonClick(ev) {
|
||||
const button = ev.currentTarget;
|
||||
const id = button.getAttribute('data-id');
|
||||
|
||||
// console.log('true_id', id);
|
||||
// const context = {production_line_show: 'shengchanxian1'}
|
||||
this.env.services.rpc('/web/dataset/call_kw', {
|
||||
@@ -58,8 +51,8 @@ class CustomKanbanController extends KanbanController {
|
||||
// console.log('response', response);
|
||||
location.reload();
|
||||
window.onload = function () {
|
||||
button.classList.add('choose')
|
||||
}
|
||||
button.classList.add('choose');
|
||||
};
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -82,8 +75,6 @@ class CustomKanbanController extends KanbanController {
|
||||
// 你可以在这里处理响应,例如将其存储在控制器的状态中
|
||||
return response;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
CustomKanbanController.template = "sf_manufacturing.CustomKanbanView1";
|
||||
@@ -94,4 +85,4 @@ export const customKanbanView = {
|
||||
};
|
||||
|
||||
// Register it to the views registry
|
||||
registry.category("views").add("custom_kanban1", customKanbanView);
|
||||
registry.category("views").add("custom_kanban1", customKanbanView);
|
||||
|
||||
Reference in New Issue
Block a user