Allow to execute button on readonly record and group

issue6659
review40551002
This commit is contained in:
C?dric Krier 2017-08-04 00:31:26 +02:00
parent ab6e67befd
commit ac099958c1

View file

@ -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', {}))