修改看板樣式

This commit is contained in:
WEB许何哲\xuhez
2023-07-13 17:31:54 +08:00
parent b6de9d5e64
commit b48a835808
4 changed files with 81 additions and 8 deletions

View File

@@ -1,13 +1,17 @@
.oe_kanban_card.kanban_color_1 {
background-color: #73b9a2 !important;
.o_content .o_kanban_renderer .o_kanban_record .oe_kanban_card.kanban_color_1 {
//background-color: #0097A7 !important;
opacity: 0.7;
//color: #fff !important;
}
.oe_kanban_card.kanban_color_2 {
background-color: #ac6767 !important;
.o_content .o_kanban_renderer .o_kanban_record .oe_kanban_card.kanban_color_2 {
background-color: #0097A7 !important;
color: #fff !important;
}
.oe_kanban_card.kanban_color_3 {
.o_content .o_kanban_renderer .o_kanban_record .oe_kanban_card.kanban_color_3 {
background-color: #77787b !important;
color: #fff !important;
}
.color-guide {
@@ -23,3 +27,43 @@
margin-right: 10px;
border-radius: 50%;
}
.alerts {
margin-left: 20px;
margin-top: 14px;
}
.alerts>div {
display: flex;
align-items: center;
margin-bottom: 10px;
}
.alerts>div>div {
border-radius: 5px;
width: 30px;
height: 20px;
margin-right: 10px;
}
.alerts>div>p {
width: 30px;
margin-bottom: 0 !important;
}
.green {
background-color: #fff !important;
border: 1px solid #ccc;
}
.red {
background-color: #0097A7 !important;
}
.grey {
background-color: #77787b !important;
}
html .body.o_web_client .o_kanban_view .o_kanban_renderer:not(.o_theme_kanban) .o_kanban_record:not(.o_theme_preview):not(.o_kanban_ghost):not(:first-child) {
margin-top: 0 !important;
}

View File

@@ -35,3 +35,21 @@
height: 30px;
border-radius: 50%;
}
.alerts>div>div {
}
.green {
background-color: #73b9a2;
width: 30px !important;
height: 20px !important;
}
.red {
background-color: #ac6767;
}
.grey {
background-color: #77787b;
}

View File

@@ -7,8 +7,19 @@
<!-- </div> -->
<!-- </xpath> -->
<xpath expr="//t[@t-component='props.Renderer']" position="before">
<div class="alerts">
<div >
Hello world !
<div class="green"></div>
<p>空闲</p>
</div>
<div>
<div class="red"></div>
<p>占用</p>
</div>
<div>
<div class="grey"></div>
<p>禁用</p>
</div>
</div>
</xpath>

View File

@@ -30,7 +30,7 @@
<field name="channel" attrs="{'invisible': [('hide_shelf', '=', False)], 'required': [('hide_shelf', '!=', False)]}"/>
<field name="direction" attrs="{'invisible': [('hide_shelf', '=', False)], 'required': [('hide_shelf', '!=', False)]}"/>
<field name="product_sn_id" attrs="{'invisible': [('hide_location', '=', False)], 'required': [('hide_location', '!=', False), ('location_status', '=', '空闲')]}"/>
<field name="time_test" widget="timepicker"/>
</group>
<group>
<field name="location_category" attrs="{'invisible': [('hide_location_type', '=', False)], 'required': [('hide_location_type', '!=', False)]}"/>