Add missing underscore to type

issue9159
issue8933
review251001002
This commit is contained in:
EdbO
2020-03-17 09:58:09 +01:00
parent 0aa5a88b79
commit 85d489dbc7
+1 -1
View File
@@ -191,7 +191,7 @@ class StatementRuleInformation(sequence_ordered(), ModelSQL, ModelView):
@fields.depends('key')
def get_selections(self):
if self.key and self.key.type == 'selection':
if self.key and self.key.type_ == 'selection':
return json.loads(self.key.selection_json)
return [(None, '')]