diff --git a/production.py b/production.py index bd88fd6ac3..acd7a354e4 100644 --- a/production.py +++ b/production.py @@ -492,6 +492,12 @@ class Production(Workflow, ModelSQL, ModelView): costs=self.cost, outputs=cost_price)) + @classmethod + def view_attributes(cls): + return [ + ('/tree', 'visual', If(Eval('state') == 'cancel', 'muted', '')), + ] + @classmethod def create(cls, vlist): Sequence = Pool().get('ir.sequence')