Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
2 ตอบกลับ
3470 มุมมอง

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>

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
พ.ค. 18
3852
Inheriting attributes from Fields แก้ไขแล้ว
1
ก.พ. 23
8140
2
พ.ค. 22
2936
1
พ.ค. 22
3667
2
ม.ค. 24
14540