调试线上sf的bug

This commit is contained in:
WEB许何哲\xuhez
2023-08-08 14:42:10 +08:00
parent 194bb28085
commit 0e292ea597
3 changed files with 12 additions and 4 deletions

View File

@@ -27,6 +27,7 @@ class CustomKanbanController extends KanbanController {
args: [[], ['id']],
kwargs: {}
}).then((records) => {
console.log(records)
const ids = records.map(record => record.id);
const context = {production_line_show: id};
this.env.services.rpc('/web/dataset/call_kw', {
@@ -36,7 +37,9 @@ class CustomKanbanController extends KanbanController {
kwargs: {}
}).then((response) => {
console.log('response', response);
location.reload();
setTimeout(function () {
location.reload();
},2000)
});
});

View File

@@ -2,15 +2,18 @@
display: flex;
justify-content: flex-start;
align-items: center;
margin-top: 1vw !important;
margin-left: 16px !important;
}
.choosekanban > button {
width: 4vw !important;
padding: 0 2vw !important;
height: 2vw !important;
border: none !important;
margin-left: 16px !important;
border-right: 1px solid #ccc !important;
background-color: #EEEEEE;
color: #989799;
font-weight: bold;
}
.o_content > .d-flex {

View File

@@ -133,6 +133,8 @@
<templates>
<t t-name="kanban-box"
t-if="record.production_line_id.value == record.production_line_show.raw_value">
<!-- <div t-on-click="console.log(record.production_line_id,'11111111111')"></div>-->
<!-- <div t-on-click="console.log(record.production_line_show,'22222222222')"></div>-->
<div t-attf-class="#{!selection_mode ? kanban_color(record.color.raw_value) : ''}">
<div t-attf-class="o_kanban_card_header o_kanban_record_top">
<div class="o_kanban_record_headings o_kanban_card_header_title">