首页 > 代码库 > How to hide the create button dynamical tree view in openerp ?

How to hide the create button dynamical tree view in openerp ?

<tree create="false" edit="false" >
<tree attrs="{‘create‘:[("uid",‘=‘,1)]}" edit="false" >
 
<record>        ...        <field name="arch" type="xml">            <xpath expr=//form[@string="Product"] position=attributes>                <attribute name="create">false</attribute>            </xpath>        </field> ,    </record>
<record ...>    ...    <form string="NAMEOFFORM" create="false" edit="false" version="7.0">        ...    </form></record>
<form create="false" edit="false">
<tree attrs="{‘create‘:[("uid",‘=‘,1)]}" edit="false" >