看板添加字段并调整样式

This commit is contained in:
WEB许何哲\xuhez
2023-09-22 17:33:56 +08:00
parent cde801a837
commit d8363f2637
2 changed files with 50 additions and 10 deletions

View File

@@ -332,7 +332,15 @@
</div>
<!-- 内容 -->
<div class="o_kanban_record_bottom state_zc">
<field name="state_zc"/>
<div>
<field name="brand_id"/>
<field name="type_id"/>
</div>
<div>
<field name="state_zc"
widget="label_selection"
options="{'classes': {'未注册': 'warning', '已注册': 'success'}}"/>
</div>
</div>
<div class="o_kanban_record_bottom state_zc">
<field name="technician_user_id"/>
@@ -349,7 +357,7 @@
<div t-attf-class="#{record.state.raw_value == '故障' ? 'color_2' : ''}"></div>
<div t-attf-class="#{record.state.raw_value == '不可用' ? 'color_3' : ''}"></div>
<p class="o_kanban_record_bottom state_zc"
t-attf-class="#{record.state.raw_value == '正常' ? 'font_color_1' : ''}
t-attf-class="#{record.state.raw_value == '正常' ? 'font_color_1' : ''}
#{record.state.raw_value == '故障' ? 'font_color_2' : ''}
#{record.state.raw_value == '不可用' ? 'font_color_3' : ''}">
<field name="state"/>