Skip to Content
Menu
This question has been flagged
2 Replies
2750 Views
<record model="ir.ui.view" id="rent_posting__tree"> 
      <field name="name">rent posting Tree</field>
     <field name="model">rent.posting</field>
     <field name="type">tree</field>
     <field name="arch" type="xml">
    <tree string="rent posting Data" editable="bottom" version="7.0" create="false" delete="false" > <field name="assetid" readonly="1" invisible="1"/>
    <field name="asset_id" readonly="1"/>
            <field name="allottename" readonly="1"/>
    <field name="rent" readonly="1"/>
     <field name="tds" readonly="1" />
     <field name="flag" invisible="1" />
     <field name="servicetax" readonly="1" attrs="{'invisible': [('flag' ,'=',False)]}" /> <field name="interest_amount" on_change="onchange_interest(rent,interest_amount,totalrent,servicetax)" readonly="1"/>
    <field name="cgst" readonly="1" attrs="{'invisible': [('flag' ,'=',True)]}"/>
    <field name="sgst" readonly="1" attrs="{'invisible': [('flag' ,'=',True)]}" />
    <field name="totalrent" readonly="1"/>
        </tree>
    </field>
</record>
Avatar
Discard
Best Answer
Try this

<field name="cgst" readonly="1" attrs="{'column_invisible': [('flag' ,'=',True)]}"/>     
<field name="sgst" readonly="1" attrs="{'column_invisible': [('flag' ,'=',True)]}" />
Avatar
Discard
Related Posts Replies Views Activity
4
Mar 15
4867
1
Mar 24
3817
2
Nov 19
2993
2
Jul 18
6885
1
Jan 18
2121