diff --git a/opportunity.py b/opportunity.py index 5f72ab2ae4..3ed556cf10 100644 --- a/opportunity.py +++ b/opportunity.py @@ -226,6 +226,12 @@ class SaleOpportunity(Workflow, ModelSQL, ModelView): if len(payment_terms) == 1: return payment_terms[0].id + @classmethod + def view_attributes(cls): + return [ + ('/tree', 'visual', If(Eval('state') == 'cancelled', 'muted', '')), + ] + @classmethod def create(cls, vlist): pool = Pool()