1.效果图
2.代码示例
<field name="state" decoration-info="state == ‘draft‘" decoration-success="state in [‘reported‘, ‘approved‘, ‘done‘]" decoration-danger="state in ‘refused‘" widget="badge"/>
Odoo14trees视图标签widget使用
原文:https://www.cnblogs.com/wangdianchao/p/15308218.html