Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
2852 มุมมอง

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

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
มี.ค. 15
4543
How to hide fields? แก้ไขแล้ว
3
มี.ค. 15
28627
3
มี.ค. 16
8600
1
มี.ค. 16
10184
2
มี.ค. 15
4084