Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2847 Lượt xem

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



Ảnh đại diện
Huỷ bỏ
Tác giả

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 !!

Câu trả lời hay nhất

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

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 3 15
4534
How to hide fields? Đã xử lý
3
thg 3 15
28624
3
thg 3 16
8596
1
thg 3 16
10181
2
thg 3 15
4082