Add visual context on tree view
issue8562 review261951002
This commit is contained in:
@@ -242,6 +242,12 @@ class Subscription(Workflow, ModelSQL, ModelView):
|
||||
default.setdefault('next_invoice_date', None)
|
||||
return super(Subscription, cls).copy(subscriptions, default=default)
|
||||
|
||||
@classmethod
|
||||
def view_attributes(cls):
|
||||
return [
|
||||
('/tree', 'visual', If(Eval('state') == 'canceled', 'muted', '')),
|
||||
]
|
||||
|
||||
@classmethod
|
||||
@ModelView.button
|
||||
@Workflow.transition('canceled')
|
||||
|
||||
Reference in New Issue
Block a user