Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo CRM Invisible field when the Lead is dead and the Opportunities is lost

on 8/25/14, 1:10 PM 813 views

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.


Why not do a check on the state field?

on 8/27/14, 3:44 PM

because the state field has been delete in the CRM 8.0, I validated with a functional field =)

on 8/28/14, 9:40 PM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 8/25/14, 1:10 PM
Seen: 813 times
Last updated: 3/16/15, 8:10 AM