看板视图样式还原

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

View File

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