Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
2897 Zobrazení

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



Avatar
Zrušit
Autor

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

Nejlepší odpověď

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
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
bře 15
4596
3
bře 15
28699
3
bře 16
8632
1
bře 16
10242
2
bře 15
4155