看板视图样式还原

This commit is contained in:
WEB许何哲\xuhez
2023-08-11 10:19:00 +08:00
parent 35ef00a8cd
commit 4b34335963
2 changed files with 26 additions and 15 deletions

View File

@@ -14,7 +14,13 @@ class CustomKanbanController extends KanbanController {
console.log('99999999111');
this.workOrders = await this.getAllWorkOrders();
console.log('lines', this.workOrders);
var aDiv = document.getElementsByClassName('o_kanban_record')
// for (var i = 0; i < aDiv.length; i++) {
// console.log(aDiv[i])
// }
console.log(aDiv)
}
buttonClick(ev) {
const button = ev.currentTarget;
const id = button.getAttribute('data-id');
@@ -37,14 +43,14 @@ class CustomKanbanController extends KanbanController {
kwargs: {}
}).then((response) => {
console.log('response', response);
setTimeout(function () {
location.reload();
},2000)
});
});
window.onload = function () {
button.classList.add('choose')
}
});
});
}
async getAllWorkOrders() {
const response = await this.env.services.rpc('/web/dataset/call_kw', {
model: 'sf.production.line',

View File

@@ -16,7 +16,12 @@
font-weight: bold;
}
.o_content > .d-flex {
display: block !important;
}
//.o_content > .d-flex {
// display: block !important;
//}