Hello, I havea little problem with a view, I need that a text field will be invisible if the Leads or Opportunities is dead or lost, I try this:
<field name="cancel_reason" placeholder="Reason for cancellation" nolabel="1" attrs="{'invisible' : [('probability', '=', 0), ('stage_id.fold', '=', True)]}"/> --> Obviously fails
<field name="cancel_reason" placeholder="Reason for cancellation" nolabel="1" attrs="{'invisible' : [('probability', '=', 0)]}"/> --> but the news leads or Opportunities see the field
The stage_id field is very variable, I don't know how to validate.
Thanks!
Why not do a check on the state field?
because the state field has been delete in the CRM 8.0, I validated with a functional field =)