Skip to Content
Menu
Musisz się zarejestrować, aby móc wchodzić w interakcje z tą społecznością.
To pytanie dostało ostrzeżenie
2 Odpowiedzi
3327 Widoki

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>
   

Awatar
Odrzuć

Thank you so much, Brother.

Najlepsza odpowiedź

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

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

</field>

Awatar
Odrzuć
Powiązane posty Odpowiedzi Widoki Czynność
2
maj 18
3759
1
lut 23
7975
2
maj 22
2820
1
maj 22
3491
2
sty 24
14383