Send signal record-changed to the wrong parent

It must be send to the ModelRecord of the field and not to the
ModelRecordGroup
This commit is contained in:
Cédric Krier committed 2010-01-19 12:29:24 +01:00
1 parent 1be2ced70b
commit 0e86d9ff0e
1 file changed
+1 -1
+1 -1
View File
@@ -394,7 +394,7 @@ class O2MField(CharField):
model.parent.modified = True
model.parent.modified_fields.setdefault(self.name)
self.sig_changed(model.parent)
self.parent.signal('record-changed', model)
model.parent.signal('record-changed', model.parent)
def get_client(self, model):
return model.value[self.name]