Simplify type test when screen execute button
This commit is contained in:
1 parent
8e211785e4
commit
ed48f7e9dc
1 file changed
-1
@@ -1238,7 +1238,6 @@ class Screen:
|
||||
record_id = self.current_record.save(force_reload=False)
|
||||
if record_id is False or record_id < 0:
|
||||
return
|
||||
if button.get('type', 'class') == 'class':
|
||||
self._button_class(button)
|
||||
else:
|
||||
self._button_instance(button)
|
||||
|
||||
Reference in new issue
Block a user