Add depends on Button
issue6919 review40811002
This commit is contained in:
1 parent
d1b3ed1f9f
commit
4e60a4caa9
1 file changed
+4
@@ -160,20 +160,24 @@ class Subscription(Workflow, ModelSQL, ModelView):
|
||||
'cancel': {
|
||||
'invisible': ~Eval('state').in_(['draft', 'quotation']),
|
||||
'icon': 'tryton-cancel',
|
||||
'depends': ['state'],
|
||||
},
|
||||
'draft': {
|
||||
'invisible': Eval('state').in_(['draft', 'closed']),
|
||||
'icon': If(Eval('state') == 'canceled',
|
||||
'tryton-clear', 'tryton-go-previous'),
|
||||
'depends': ['state'],
|
||||
},
|
||||
'quote': {
|
||||
'invisible': Eval('state') != 'draft',
|
||||
'readonly': ~Eval('lines', []),
|
||||
'icon': 'tryton-go-next',
|
||||
'depends': ['state'],
|
||||
},
|
||||
'run': {
|
||||
'invisible': Eval('state') != 'quotation',
|
||||
'icon': 'tryton-go-next',
|
||||
'depends': ['state'],
|
||||
},
|
||||
})
|
||||
|
||||
|
||||
Reference in new issue
Block a user