mirror of
https://github.com/NaN-tic/tryton-gtk2.git
synced 2023-12-14 03:12:58 +01:00
Allow to execute button on readonly record and group
issue6659 review40551002
This commit is contained in:
parent
ab6e67befd
commit
ac099958c1
1 changed files with 0 additions and 2 deletions
|
@ -1034,8 +1034,6 @@ class Screen(SignalEvent):
|
|||
def get_buttons(self):
|
||||
'Return active buttons for the current view'
|
||||
def is_active(record, button):
|
||||
if record.group.readonly or record.readonly:
|
||||
return False
|
||||
if button.attrs.get('type', 'class') == 'instance':
|
||||
return False
|
||||
states = record.expr_eval(button.attrs.get('states', {}))
|
||||
|
|
Loading…
Reference in a new issue