Перейти к содержимому
Меню
Чтобы взаимодействовать с сообществом, необходимо зарегистрироваться.
Этот вопрос был отмечен
2 Ответы
3371 Представления

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
3785
1
февр. 23
8021
2
мая 22
2865
1
мая 22
3557
2
янв. 24
14424