修改设备模块看板
This commit is contained in:
@@ -13,3 +13,20 @@
|
|||||||
vertical-align: top !important;
|
vertical-align: top !important;
|
||||||
font-size: 1.5rem !important;
|
font-size: 1.5rem !important;
|
||||||
}
|
}
|
||||||
|
.my-image div {
|
||||||
|
width: 100px !important;
|
||||||
|
height: 130px !important;
|
||||||
|
}
|
||||||
|
.add_flex {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.maintenance_name {
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
.o_kanban_renderer .o_kanban_record .o_kanban_record_has_image_fill .o_kanban_image_fill_left {
|
||||||
|
flex:unset !important;
|
||||||
|
}
|
||||||
|
.o_kanban_renderer .o_kanban_record .o_kanban_record_bottom {
|
||||||
|
margin-top: 5px;
|
||||||
|
}
|
||||||
@@ -32,7 +32,8 @@
|
|||||||
<field name="equipment_type" invisible="1"/>
|
<field name="equipment_type" invisible="1"/>
|
||||||
<field name="brand_id" attrs="{'invisible': [('equipment_type', '!=', '机床')]}"
|
<field name="brand_id" attrs="{'invisible': [('equipment_type', '!=', '机床')]}"
|
||||||
force_save="1"/>
|
force_save="1"/>
|
||||||
<field name="type_id" attrs="{'invisible': [('equipment_type', '!=', '机床')]}" required="1" domain="[('brand_id', '=', brand_id)]"/>
|
<field name="type_id" attrs="{'invisible': [('equipment_type', '!=', '机床')]}" required="1"
|
||||||
|
domain="[('brand_id', '=', brand_id)]"/>
|
||||||
<field name="machine_tool_category" readonly="1" attrs="{'invisible': [('type_id', '=', False)]}"
|
<field name="machine_tool_category" readonly="1" attrs="{'invisible': [('type_id', '=', False)]}"
|
||||||
force_save="1"/>
|
force_save="1"/>
|
||||||
</xpath>
|
</xpath>
|
||||||
@@ -258,28 +259,39 @@
|
|||||||
<field name="arch" type="xml">
|
<field name="arch" type="xml">
|
||||||
<xpath expr="//field[@name='activity_state']" position="before">
|
<xpath expr="//field[@name='activity_state']" position="before">
|
||||||
<field name="state"/>
|
<field name="state"/>
|
||||||
|
<field name="machine_tool_picture"/>
|
||||||
|
|
||||||
</xpath>
|
</xpath>
|
||||||
<xpath expr="//templates" position="inside">
|
<xpath expr="//templates" position="inside">
|
||||||
<t t-name="kanban-box">
|
<t t-name="kanban-box">
|
||||||
<div t-attf-class="oe_kanban_card oe_kanban_global_click
|
<div t-attf-class="oe_kanban_global_click o_kanban_record_has_image_fill o_hr_kanban_record oe_kanban_card oe_kanban_global_click
|
||||||
#{record.state.raw_value == '正常' ? 'kanban_color_1' : ''}
|
#{record.state.raw_value == '正常' ? 'kanban_color_1' : ''}
|
||||||
#{record.state.raw_value == '故障' ? 'kanban_color_2' : ''}
|
#{record.state.raw_value == '故障' ? 'kanban_color_2' : ''}
|
||||||
#{record.state.raw_value == '不可用' ? 'kanban_color_3' : ''}">
|
#{record.state.raw_value == '不可用' ? 'kanban_color_3' : ''}">
|
||||||
|
|
||||||
|
<field name="machine_tool_picture" class="o_kanban_image_fill_left d-block my-image"
|
||||||
|
preview_image="image_128" widget="background_image"/>
|
||||||
|
<!-- <field name="machine_tool_picture" widget="image" options="{'previewImage': false}"/>-->
|
||||||
|
<div class="add_flex">
|
||||||
<div class="o_kanban_card_header">
|
<div class="o_kanban_card_header">
|
||||||
<div class="o_kanban_card_header_title">
|
<div class="o_kanban_card_header_title maintenance_name">
|
||||||
<field name="name"/>
|
<field name="name"/>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- 内容 -->
|
<!-- 内容 -->
|
||||||
<div class="o_kanban_record_bottom">
|
<div class="o_kanban_record_bottom state_zc">
|
||||||
<field name="state_zc"/>
|
<field name="state_zc"/>
|
||||||
</div>
|
</div>
|
||||||
<div class="o_kanban_record_bottom">
|
<div class="o_kanban_record_bottom state_zc">
|
||||||
<field name="factory_id"/>
|
<field name="state"/>
|
||||||
<span> | </span>
|
|
||||||
<field name="supplier_id"/>
|
|
||||||
</div>
|
</div>
|
||||||
|
<!-- <div class="o_kanban_record_bottom">-->
|
||||||
|
<!-- <field name="factory_id"/>-->
|
||||||
|
<!-- <span> | </span>-->
|
||||||
|
<!-- <field name="supplier_id"/>-->
|
||||||
|
<!-- </div>-->
|
||||||
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</t>
|
</t>
|
||||||
</xpath>
|
</xpath>
|
||||||
|
|||||||
Reference in New Issue
Block a user