看板视图css调整(老许做的)

This commit is contained in:
mgw
2023-08-07 14:37:58 +08:00
parent 4f893929ca
commit 5f04cbb896
3 changed files with 8 additions and 16 deletions

View File

@@ -1,18 +1,13 @@
.alerts {
.choosekanban {
display: flex;
justify-content: flex-start;
align-items: center;
margin-top: 1vw !important;
}
.alerts>div {
width: 3vw;
height: 1.5vw;
border: 1px solid grey;
border-radius: 5px;
margin: 0 0.5vw;
justify-content: center;
}
.alerts>div:nth-child(1) {
margin-left: 0 !important;
.choosekanban > button {
width: 4vw !important;
height: 2vw !important;
border: none !important;
margin-left: 16px !important;
}

View File

@@ -2,7 +2,7 @@
<templates>
<t t-name="sf_manufacturing.CustomKanbanView1" t-inherit="web.KanbanView" owl="1">
<xpath expr="//t[@t-component='props.Renderer']" position="before">
<div class="alerts">
<div class="choosekanban">
<!-- <t t-foreach="env['mrp.workcenter'].get_dynamic_data()" t-as="i" t-key="i"> -->
<t t-foreach="workOrders" t-as="i" t-key="i">
<button t-on-click="buttonClick" t-att-data-id="i.name">

View File

@@ -131,9 +131,6 @@
<field name="production_line_id"/>
<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)'>
</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">