跳至内容
菜单
此问题已终结
1 回复
2832 查看

i want to hide the fields which already exist in same form !! can anyone help me 



形象
丢弃
编写者

i just tried like this .

<record id="view_order_form_duplicate" model="ir.ui.view">
<field name="name">sale.order.form.duplicate</field>
<field name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<xpath expr="//form" position="attributes">
<attribute name="duplicate">False</attribute>
</xpath>
</field>
</record>

but its not working :(
please help me !!

最佳答案

Hi, 
You can try this code. if you need to remove the duplicates from the form view

<record id="view_order_form_duplicate" model="ir.ui.view">
<field
name="name">sale.order.form.duplicate</field>
<field
name="model">sale.order</field>
<field name="inherit_id" ref="sale.view_order_form"/>
<field name="arch" type="xml">
<form position="attributes">
            <attribute name="string">Add the non duplicate string</attribute>
            <attribute name="duplicate">false</attribute>
        </form>
</field>
</record>



Hope it helps

形象
丢弃
相关帖文 回复 查看 活动
2
3月 15
4531
3
3月 15
28615
3
3月 16
8592
1
3月 16
10178
2
3月 15
4077