0
在Odoo 9中,我根据字段更改了树视图。这个工程,但我也想使字体粗体。我读到可以结合decfa-bf使颜色更好地突出。Odoo Treeview颜色和字体
<tree string="Status" decoration-danger="status=='open'"
decoration-success="status=='complete'"
decoration-info="status=='progress'"
decoration-warning="status=='response'"
decoration-primary="status=='pickup'">
<field name="x_partner_id"/>
<field name="status" editable="true"/>
<field name="create_date"/>
</tree>
我试图
<tree string="Status" decoration-danger="status=='open'"
decoration-success-bf="status=='complete'"
decoration-info-bf="status=='progress'"
decoration-warning-bf="status=='response'"
decoration-primary-bf="status=='pickup'">
<field name="x_partner_id"/>
<field name="status" editable="true"/>
<field name="create_date"/>
</tree>
感谢Naglis奏效。 – user2379186