【发布时间】:2015-12-08 10:35:38
【问题描述】:
我一直在尝试使用 xpath 替换另一个类的树视图中的字段。
<xpath expr="//form/sheet/notebook/page/group/field/tree/field[@name='test']" position="replace">
<field name="parts_id2" style="width:30%%" attrs="{'invisible':[('sts','not in',['release'])]}"/>
</xpath>
但该字段不会出现在树视图上,而是有时会出现在树之外的其他地方。
【问题讨论】:
-
你能详细解释一下吗.. 为什么用 style="width:30%%" 不好
-
many2one 下拉框有时会出现在树的其他地方,有时会出现在树视图行中
-
你上次使用这个 //sheet//notebook//tree//field[@name="test"]
标签: xml xpath openerp odoo-8 openerp-8