Odoo Tree视图颜色组件

web模块中定义,Tree 视图上组件,每行的字体色:

具体代码如下:

<?xml version="1.0"?>
<tree string="Contact Tags" 
      decoration-bf="name=='decoration-bf'"
      decoration-it="name=='decoration-it'"
      decoration-danger="name=='decoration-danger'"
      decoration-info="name=='decoration-info'"
      decoration-muted="name=='decoration-muted'"
      decoration-primary="name=='decoration-primary'"
      decoration-success="name=='decoration-success'"
      decoration-warning="name=='decoration-warning'">
    <field name="display_name"/>
    <field name="name"/>
    <field name="color"/>
</tree>

转自:https://www.sunpop.cn/odoo_widget_color/

猜你喜欢

转载自blog.csdn.net/sinat_23931991/article/details/85237784