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

I have inherited a  purchase module, But I don't want the field "incoterm_id", I tried to hide it by using xpath and attribute, unfortunately its not hiding at all. this is my code.


    <record id="view_construction_form" model= "ir.ui.view">
        <field name="name">view.construction.form</field>
        <field name="model">purchase.order</field>
        <field name="inherit_id" ref="purchase.purchase_order_form"/>
       
        <field name="arch" type="xml">
        <form>
       
                <xpath expr="/form/sheet/notebook/page[2]/group[1]/group[1]/field[@name='incoterm_id']"                 position="attributes">
                    <attribute name="invisible">True</attribute>
                </xpath>   
         </form>
         </field>
    </record>
   

Avatar
Zrušit

Thank you so much, Brother.

Nejlepší odpověď

<field name="incoterm_id" position="attributes">

     <attribute name="invisible">True</attribute>

</field>

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
2
kvě 18
3755
1
úno 23
7958
2
kvě 22
2812
1
kvě 22
3480
2
led 24
14368