Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide field in xpath exp odoo 9

Tags:

openerp

odoo-9

What is the best solution to hide field eg. partner_id in

<xpath expr=".">
        <field name="partner_id" />
</xpath>
like image 380
Pointer Avatar asked Jul 20 '17 10:07

Pointer


2 Answers

<xpath expr="//field[@name='partner_id']" position="attributes">
       <attribute name="invisible">1</attribute>
</xpath>
like image 60
user_odoo Avatar answered Nov 04 '22 22:11

user_odoo


This is the best way of hiding any field from the view.

<xpath expr="//field[@name='partner_id']" position="attributes">
    <attribute name="invisible">1</attribute>
</xpath>
like image 4
sfx Avatar answered Nov 04 '22 23:11

sfx