【发布时间】:2015-11-10 08:56:20
【问题描述】:
我有one2many 字段和one2many_list tag,我想隐藏qty 字段,如果我选择例如service,则不需要该字段。
我认为有这段代码:
<field name='type'/>
<field name="products" nolabel="1" widget="one2many_list">
<tree editable="bottom" >
<field name='description'/>
<field name='qty'/>
<field name='total'/>
</tree>
</field>
如何使用type 字段来做到这一点?
【问题讨论】: