工作中心看板样式修改
This commit is contained in:
@@ -180,6 +180,7 @@ div[class="o_content o_component_with_search_panel"] .oe_kanban_color_0 {
|
||||
|
||||
div[class="o_content o_component_with_search_panel"] img[name="equipment_image"] {
|
||||
width: 150px !important;
|
||||
height: 150px !important;
|
||||
}
|
||||
|
||||
div[class="o_content o_component_with_search_panel"] .o_kanban_card_content button {
|
||||
@@ -232,3 +233,9 @@ div[class="o_content o_component_with_search_panel"] .show_state span {
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
div[class="o_content o_component_with_search_panel"] .o_kanban_primary_right > .row {
|
||||
position: absolute;
|
||||
top: 55px;
|
||||
right: 263px;
|
||||
}
|
||||
|
||||
|
||||
@@ -92,12 +92,17 @@
|
||||
<field name="inherit_id" ref="mrp.mrp_workcenter_kanban"/>
|
||||
<field name="arch" type="xml">
|
||||
<xpath expr="//kanban//templates//t" position="inside">
|
||||
<div class="show_state" t-attf-class="oe_kanban_global_click o_kanban_record_has_image_fill o_hr_kanban_record oe_kanban_card oe_kanban_global_click
|
||||
<p class="show_state" t-attf-class="oe_kanban_global_click o_kanban_record_has_image_fill o_hr_kanban_record oe_kanban_card oe_kanban_global_click
|
||||
">
|
||||
<div t-attf-class="#{record.equipment_status.raw_value == '正常' ? 'color_1' : ''}"></div>
|
||||
<div t-attf-class="#{record.equipment_status.raw_value == '故障' ? 'color_2' : ''}"></div>
|
||||
<div t-attf-class="#{record.equipment_status.raw_value == '不可用' ? 'color_3' : ''}"></div>
|
||||
</div>
|
||||
<span t-attf-class="#{record.equipment_status.raw_value == '正常' ? 'font_color_1' : ''}
|
||||
#{record.equipment_status.raw_value == '故障' ? 'font_color_2' : ''}
|
||||
#{record.equipment_status.raw_value == '不可用' ? 'font_color_3' : ''}">
|
||||
<field name="equipment_status"/>
|
||||
</span>
|
||||
</p>
|
||||
</xpath>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
Reference in New Issue
Block a user