繼承後的tree處理
-
参考:
http://blog.csdn.net/shanzhizi/article/details/48179171in a inherith view you can change the color using attributes
-
继承tree修改属性
通过继承修改tree的属性值。 ... <field name="arch" type="xml"> <tree position="attributes"> <attribute name="decoration-info">state=='1'</attribute> </tree> ... -
首先检查下你的python文件里面是否有定义这个state字段然后你代码里面
<xpath>...</xpatch>的内容应该和<tree>...</tree>标签同级,你现在放到tree的下一级了。





