Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
2854 Weergaven

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



Avatar
Annuleer
Auteur

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

Beste antwoord

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

Avatar
Annuleer
Gerelateerde posts Antwoorden Weergaven Activiteit
2
mrt. 15
4547
3
mrt. 15
28627
3
mrt. 16
8600
1
mrt. 16
10184
2
mrt. 15
4086