I trying am trying to hide fields as per the change of states in the statusbar eg
when the state is new I want to show this field
This is the error I am getting
Error: While parsing modifiers for field for modifier "invisible": Unknown field state in the domain
When I use this:
I get below error:
"Error: While parsing modifiers for field approved_date: for modifier" invisible ": Unknown field state in the domain
Where I'm I going wrong here
<record id="crm_case_form_view_oppor_inherit_product" model="ir.ui.view">
<field name="name">crm.lead.oppor.inherited</field>
<field name="model">crm.lead</field>
<field name="inherit_id" ref="crm.crm_lead_view_form" />
<field name="arch" type="xml">
<xpath expr="//field[@name='lead']" position="after">
<field name = "name" string = "Name" attrs = "{'invisible': [('state', '! =', new)]}" />
</xpath>
</field>
</record>