跳至内容
菜单
此问题已终结
2 回复
3364 查看

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>
   

形象
丢弃

Thank you so much, Brother.

最佳答案

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

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

</field>

形象
丢弃
相关帖文 回复 查看 活动
2
5月 18
3782
1
2月 23
8015
2
5月 22
2863
1
5月 22
3550
2
1月 24
14416