Hi,
here, i have mentioned the code:
<notebook>
<page string="Test Lines">
<field name="labtest_type_line" options="{'no_create': True, 'no_create_edit':True}" >
<tree string="Test Name" editable="bottom" >
<field name="labtest_type_id" required="1"/>
<field name="state" invisible="1"/>
<field name="sample_value"/>
<field name="sample_value_per"/>
<field name="ontruck_value" attrs="{'invisible': [('state', '=', 'draft')]}"/>
<field name="ontruck_value_per" attrs="{'invisible': [('state', '=', 'draft')]}"/>
<field name="final_value" attrs="{'invisible': [('state', 'in', ('draft','sample'))]}"/>
<field name="final_value_per" attrs="{'invisible': [('state', 'in', ('draft','sample'))]}"/>
</tree>
</field>
</page>
</notebook>
Can anyone tell what i did mistake?