1、先设置css,edofdata/static/src/scss/edokpi.scss
这里注意.o_form_label.edo-label 连着没空格哦
.o_form_label.edo-label {
color: red;
margin-left: 20px !important;
}
2、然后导入
‘assets’: {
‘web.assets_backend’: [
‘edofdata/static/src/scss/edokpi.scss’,
},
3、引用,起效果
<group string=”收入指标”>
<field name=”frevenue” attrs=”{‘readonly’: [(‘state’,’!=’,’draft’)]}”/>
<label for=”fmain_revenue” class=”edo-label” string=”其中:主营收入”/>
<field name=”fmain_revenue” attrs=”{‘readonly’: [(‘state’,’!=’,’draft’)]}” nolabel=”1″/>
</group>
4、效果: