<page name="entitlements" string="Entitlements">
<field name="entitlement_ids" widget="one2many_list" nolabel="1">
<tree string="Entitlements" editable="bottom" >
<field name="name" widget="selection" />
<field name="asset_id" widget="selection" attrs="{'invisible':[('name','=','loan')]}" />
<field name="loan_id" widget="selection" attrs="{'invisible':[('name','=','asset')]}" />
</tree>
</field>
</page>
its make my field readonly but i want to hide my field not readonly
Check odoo customization tips: http://learnopenerp.blogspot.com/