mirror of
https://github.com/NaN-tic/tryton-gtk2.git
synced 2023-12-14 03:12:58 +01:00
Raise KeyError when Record.__getitem__ is called with a unknown field name
issue7073 review44591002
This commit is contained in:
parent
9213e59cc2
commit
75c5d1938f
1 changed files with 1 additions and 1 deletions
|
@ -131,7 +131,7 @@ class Record(SignalEvent):
|
|||
for key in record.modified_fields:
|
||||
value.pop(key, None)
|
||||
record.set(value, signal=False)
|
||||
return self.group.fields.get(name, False)
|
||||
return self.group.fields[name]
|
||||
|
||||
def __repr__(self):
|
||||
return '<Record %s@%s at %s>' % (self.id, self.model_name, id(self))
|
||||
|
|
Loading…
Reference in a new issue