看板视图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; display: flex;
justify-content: flex-start; justify-content: flex-start;
align-items: center; align-items: center;
margin-top: 1vw !important;
} }
.alerts>div { .choosekanban > button {
width: 3vw; width: 4vw !important;
height: 1.5vw; height: 2vw !important;
border: 1px solid grey; border: none !important;
border-radius: 5px; margin-left: 16px !important;
margin: 0 0.5vw;
justify-content: center;
}
.alerts>div:nth-child(1) {
margin-left: 0 !important;
} }

View File

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

View File

@@ -131,9 +131,6 @@
<field name="production_line_id"/> <field name="production_line_id"/>
<templates> <templates>
<t t-name="kanban-box" t-if="record.production_line_id.value == record.production_line_show.raw_value"> <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="#{!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">