<field name="operator" style="background:Blue;" attrs="{'readonly':[('state', '=', 'done')]}"/>
if you need to give color for your letters, then use style="color:Red;"
ex: In Css file
.text_value_color {
color: #052EF9;
}
In xml :
<field name="name" class="text_value_color"/>
============================================
控制图片显示
<style>标签:颜色,form,img,width,color,height,openerp,odoo,段加 From: https://www.cnblogs.com/pythonClub/p/17413349.html
.openerp .Your_custom_class > img { height: 6000px; width: 10000px; }
.openerp .oe_form .oe_form_field_image img { max-width:656px; max-height: 1056px; }
</style>
<field name="picture" widget="image" class="Your_custom_class"/>