树视图中的 Odoo 装饰不起作用?

问题描述

我正在尝试在 odoo 13 的继承树视图中添加装饰。为此,我在我的模块中添加一个变量

x_LCStatus = fields.Selection(selection=[('0','In development'),('1','Active'),('2','Not for new developments'),('3','End of life')],string='Life cycle',default='1',store=True)

但是,当我尝试更改关联树视图中的装饰时,认设置没有任何变化。

<xpath expr="//tree" position="attributes">
      <attribute name="decoration-danger">"x_LCStatus=='3'"</attribute>
      <attribute name="decoration-warning">"x_LCStatus=='2'"</attribute>
      <attribute name="decoration-primary">"x_LCStatus=='1'"</attribute>
</xpath>

知道我做错了什么吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)