Accept Merge Request #304: (feature/tree视图表格样式修改 -> develop)

Merge Request: 调试线上sf的bug

Created By: @许何哲
Accepted By: @许何哲
URL: https://jikimo-hn.coding.net/p/jikimo_sfs/d/jikimo_sf/git/merge/304?initial=true
This commit is contained in:
许何哲
2023-08-08 14:45:47 +08:00
committed by Coding
3 changed files with 12 additions and 4 deletions

View File

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

View File

@@ -2,15 +2,18 @@
display: flex; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
margin-top: 1vw !important; margin-left: 16px !important;
} }
.choosekanban > button { .choosekanban > button {
width: 4vw !important; padding: 0 2vw !important;
height: 2vw !important; height: 2vw !important;
border: none !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 { .o_content > .d-flex {

View File

@@ -133,6 +133,8 @@
<templates> <templates>
<t t-name="kanban-box" <t t-name="kanban-box"
t-if="record.production_line_id.value == record.production_line_show.raw_value"> 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="#{!selection_mode ? kanban_color(record.color.raw_value) : ''}">
<div t-attf-class="o_kanban_card_header o_kanban_record_top"> <div t-attf-class="o_kanban_card_header o_kanban_record_top">
<div class="o_kanban_record_headings o_kanban_card_header_title"> <div class="o_kanban_record_headings o_kanban_card_header_title">