看板视图样式还原
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
/** @odoo-module */
|
||||
|
||||
import { KanbanController } from "@web/views/kanban/kanban_controller";
|
||||
import { kanbanView } from "@web/views/kanban/kanban_view";
|
||||
import { registry } from "@web/core/registry";
|
||||
import {KanbanController} from "@web/views/kanban/kanban_controller";
|
||||
import {kanbanView} from "@web/views/kanban/kanban_view";
|
||||
import {registry} from "@web/core/registry";
|
||||
|
||||
// the controller usually contains the Layout and the renderer.
|
||||
class CustomKanbanController extends KanbanController {
|
||||
@@ -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,16 +43,16 @@ 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',{
|
||||
const response = await this.env.services.rpc('/web/dataset/call_kw', {
|
||||
model: 'sf.production.line',
|
||||
method: 'search_read',
|
||||
args: [],
|
||||
|
||||
@@ -16,7 +16,12 @@
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.o_content > .d-flex {
|
||||
display: block !important;
|
||||
}
|
||||
//.o_content > .d-flex {
|
||||
// display: block !important;
|
||||
//}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user